I have the following situation:
string expected = null;
string result = null;
result.Should().Equal(expected) // Throws Exception
"Expected collection to be equal, but found <null>."
Id #12490 | Release:
| Updated: Thu at 6:45 PM by dennisdoomen | Created: Thu at 1:56 PM by tommck
Because there are a lot more things to test than just both attributes and elements.
Currently I use something like this:
XElement.As<XNode>().Should().Match<XElement>(x => x.Name == "foo")
Id #12489 | Release:
| Updated: May 9 at 5:04 AM by dennisdoomen | Created: May 8 at 9:33 PM by felixdd
Can a method for NullOrWhitespace be added to String assertions please? A NullOrEmpty already exists, but not one for whitespace.
Id #12488 | Release:
| Updated: May 7 at 8:07 AM by denzilla | Created: May 7 at 8:07 AM by denzilla
System.NullReferenceException : Object reference not set to an instance of an object
Id #12487 | Release:
| Updated: Apr 5 at 8:00 PM by StreamWriter | Created: Apr 5 at 8:00 PM by StreamWriter
I would expect this class to provide a list of public properties only. However under the hood, in the SelectProperties method, it is calling GetNonPrivateProperties which can return protected, inte...
Id #12486 | Release:
| Updated: Apr 4 at 9:33 AM by toyners | Created: Apr 4 at 9:33 AM by toyners
As fixed for the issue below in WinRT:
It would be really useful to be fixed as well for Windows Phone 8. Most of the functionality is also ...
Id #12485 | Release:
| Updated: Apr 3 at 6:38 PM by dennisdoomen | Created: Apr 3 at 8:59 AM by masantiago
I'm having trouble comparing lists of objects that come back in an indeterminate order. I thought ShouldBeEquivalentTo() would take care of this for me, but it doesn't seem to :(
Check out the com...
Id #12484 | Release:
| Updated: Thu at 6:43 PM by dennisdoomen | Created: Mar 20 at 6:04 PM by mcassidy
LateBoundTestFramework checks if an assembly with the given name is loaded. But the check is case sensitive. Therefore in our case the NUnit cannot be determined - NUnitTestFramework defines "nunit...
Id #12483 | Release:
| Updated: Mar 21 at 10:45 PM by vlado_nemo | Created: Mar 19 at 11:42 PM by vlado_nemo
When an AggregateException is thrown it would be nice if ShouldNotThrow shows the details about the inner exception. Now you only see that an AggregateException is thrown, but is is more interestin...
Id #12482 | Release:
| Updated: Mar 8 at 8:43 AM by mopdam | Created: Mar 8 at 8:43 AM by mopdam
Take this example. Foo is overriden with new. This crashes TypeExtensions.FindProperty because it will see object Foo and string Foo
public void FluentAssertionsTest()
Id #12481 | Release:
| Updated: Mar 12 at 6:31 PM by dennisdoomen | Created: Feb 25 at 2:35 PM by reitzmichnicht