Quantcast
Channel: Fluent Assertions
Browsing all 1402 articles
Browse latest View live
↧

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 Article


Closed 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 Article


Edited 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 Article

Closed 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 Article

Closed 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 Article


Closed 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 Article

Closed 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 Article

Closed 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 Article


Updated Wiki: Home

We've moved the project to GitHub.

View Article


New 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 Article

New 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 Article

New Post: I need the collection.Should().NotContainInOrder(new[] { 1, 5, 8 })...

How can I make an extension to have this assertion? Thanks!

View Article

New Comment on "Documentation"

Thanks for having .Should().OnlyContain(x => x..., "Message"). Helped me avoid a lenghty construct!

View Article


Created 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 Article

Edited 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 Article


Edited 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 Article

New 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 Article


New Post: Bug: Optional parameters in .NET 3.5 build

We have moved! https://github.com/dennisdoomen/fluentassertions

View Article

New 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 Article

Created 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
Browsing all 1402 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>