CollectionAssertions.Equal does not handle null properly

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>." S...

Id #12490 | Release: None | Updated: Thu at 6:45 PM by dennisdoomen | Created: Thu at 1:56 PM by tommck

XElement.Should().Match()

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: None | Updated: May 9 at 5:04 AM by dennisdoomen | Created: May 8 at 9:33 PM by felixdd

string.Should().NotBeNullOrWhitespace();

Can a method for NullOrWhitespace be added to String assertions please? A NullOrEmpty already exists, but not one for whitespace. Cheers

Id #12488 | Release: None | Updated: May 7 at 8:07 AM by denzilla | Created: May 7 at 8:07 AM by denzilla

NullReferenceException caused by AttributeBasedFormatter on Mono 3.0.6

(true).Should().BeFalse(); results in System.NullReferenceException : Object reference not set to an instance of an object at FluentAssertions.Formatting.AttributeBasedFormatter.<FindCustomForm...

Id #12487 | Release: None | Updated: Apr 5 at 8:00 PM by StreamWriter | Created: Apr 5 at 8:00 PM by StreamWriter

Misleading AllDeclaredPublicPropertiesSelectionRule class

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: None | Updated: Apr 4 at 9:33 AM by toyners | Created: Apr 4 at 9:33 AM by toyners

WP8: Extend ShouldThrow() to Func<Task>

As fixed for the issue below in WinRT: http://fluentassertions.codeplex.com/workitem/12148 It would be really useful to be fixed as well for Windows Phone 8. Most of the functionality is also ...

Id #12485 | Release: Release 2.1.0 | Updated: Apr 3 at 6:38 PM by dennisdoomen | Created: Apr 3 at 8:59 AM by masantiago

Inconsistent ShouldBeEquivalentTo() behaviour for collections of complex types

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: Release 2.1.0 | Updated: Thu at 6:43 PM by dennisdoomen | Created: Mar 20 at 6:04 PM by mcassidy

Test framework detection using assembly scanning is case sensitive

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: Release 2.1.0 | Updated: Mar 21 at 10:45 PM by vlado_nemo | Created: Mar 19 at 11:42 PM by vlado_nemo

Show details about an AggregateException in ShouldNotThrow

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: None | Updated: Mar 8 at 8:43 AM by mopdam | Created: Mar 8 at 8:43 AM by mopdam

ShouldBeEquivalentTo crashes on signature hiding properties

Take this example. Foo is overriden with new. This crashes TypeExtensions.FindProperty because it will see object Foo and string Foo [TestMethod] public void FluentAssertionsTest() { ...

Id #12481 | Release: None | Updated: Mar 12 at 6:31 PM by dennisdoomen | Created: Feb 25 at 2:35 PM by reitzmichnicht