Closed Issue: Fluent assertions v1.7.1 fails to compare nullable timespans...
Not tested with latest version. It seems that an overload on SimpleTimeSpanAssertions which accepts a Nullable<TimeSpan> is missing. I was able to work around this by writing the next extension...
View ArticleClosed Issue: DateTimeOffset support [12464]
It would be great if FA supported DateTimeOffset in the same way it supported DateTime.Comments: https://github.com/dennisdoomen/fluentassertions/issues/6
View ArticleEdited Issue: Output text of a collection assertion should be more friendly...
The output text of a collection assertion (Should().BeEquivalentTo()) should describe specific differences in objects like ShouldHave().AllProperties().EqualTo() does.
View ArticleClosed Issue: Output text of a collection assertion should be more friendly...
The output text of a collection assertion (Should().BeEquivalentTo()) should describe specific differences in objects like ShouldHave().AllProperties().EqualTo() does.
View ArticleClosed Issue: AssertEquality - include property value [12480]
If properties are not equal and property types are the same - show expected and actual property values. This would greatly help debugging the issue.I ran into the problem when using...
View ArticleClosed Unassigned: string.Should().NotBeNullOrWhitespace(); [12488]
Can a method for NullOrWhitespace be added to String assertions please? A NullOrEmpty already exists, but not one for whitespace.CheersComments: Continued through...
View ArticleClosed Unassigned: BeEmpty() on a byte array [12491]
imho empty on a byte array means that all bytes is zero, not that the actual length is zero. The method isn't very useful otherwise as it's quite easy to write Buffer.Count.Should.Be(0);Comments: Won't...
View ArticleClosed Unassigned: Assembly not correctly loaded in Mono 3.2.0 [12496]
It seems that a project that references FluentAssertions.dll is not correctly loaded in Xamarin Studio 4.0 (on Mac OS X).If I remove the reference and I'm also unable to install it with NuGet Package...
View ArticleNew Post: Confusion with OnlyContain usage
I don't agree with this. It's still true that an empty collection only contains elements matching a given criterion. An example: I wrote a test to verify that a method that transformed a collection of...
View ArticleNew Post: Confusion with OnlyContain usage
Here's a work-around for anyone who wants the old behaviour:public static AndConstraint<GenericCollectionAssertions<T>> ReallyOnlyContain<T>(this GenericCollectionAssertions<T>...
View ArticleNew Post: I need the collection.Should().NotContainInOrder(new[] { 1, 5, 8 })...
How can I make an extension to have this assertion? Thanks!
View ArticleNew Comment on "Documentation"
Thanks for having .Should().OnlyContain(x => x..., "Message"). Helped me avoid a lenghty construct!
View ArticleCreated Unassigned: Unit Testing with a DbScripts Project [12497]
I am using VS2013I have added a UnitTest project that executes the following assertions: (Succesfull)``` Assert.IsNotNull(drivers); Assert.AreEqual(recordsExpected, drivers.Count);```When I add the...
View ArticleEdited Unassigned: Unit Testing with a DbScripts Project [12497]
I am using VS2013I have added a UnitTest project that executes the following assertions: (Succesfull)``` Assert.IsNotNull(drivers); Assert.AreEqual(recordsExpected, drivers.Count);```When I add the...
View ArticleEdited Unassigned: Unit Testing with a DbScripts Project [12497]
I am using VS2013I have added a UnitTest project that executes the following assertions: (Succesfull)```Assert.IsNotNull(drivers);Assert.AreEqual(recordsExpected, drivers.Count);```When I add the...
View ArticleNew Post: Bug: Optional parameters in .NET 3.5 build
I have the same problem, I have to type in blank strings for every assert. I have Visual Studio 201X but I also have to use Visual Studio 2008 because I'm testing a library for the Compact Framework....
View ArticleNew Post: Bug: Optional parameters in .NET 3.5 build
We have moved! https://github.com/dennisdoomen/fluentassertions
View ArticleNew Post: Test XElement child node
Hi, say we have a xml file "Book.xml".<?xml version="1.0"?> <catalog> <book id="bk101"> <author>Gambardella, Matthew</author> <title>XML Developer's...
View ArticleCreated Unassigned: uint does not contain a definition for...
In a .NET 3.5 solution, if you write something simple like the following:```uint test = uint.MaxValue;test.ShouldBeEquivalentTo(uint.MaxValue);```Then you will get the following compilation error using...
View Article