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

Created Issue: Improved exception message for string comparison [12422]

When comparing long strings, the exception message only tells me that the string is "too short", but it doesn't say how long it is or should have been or where the difference is. The assertions in...

View Article


Created Issue: String comparison with 'ignore whitespace' [12423]

The "Should().BeEquivalentTo()" ignores casing, but it would be great to have an option for ignoring whitespace and tab/carriage return/newline characters as well

View Article


Source code checked in, #80786

Made all versions of methods that take a reason optional so that we can remove the lesser version of that method. Introduced a simple value formatter for Guids. Made several methods aware of the...

View Article

Closed Task: Remove overloads [12405]

Remove all overloads that take a reason and use optional parameters instead.Comments: Resolved with changeset 80786: Made all versions of methods that take a reason optional so that we can remove the...

View Article

Reopened Feature: Exclude properties on nested objects [11841]

We'd like to compare two aggregate roots ignoring a few audit properties (CreatedBy, CreatedOn) on all entities within the root.AllPropertiesBut() only excludes properties on the root object.I think...

View Article


Source code checked in, #80811

Added extra specs to verify that custom rules are properly evaluated

View Article

Commented Feature: Exclude properties on nested objects [11841]

We'd like to compare two aggregate roots ignoring a few audit properties (CreatedBy, CreatedOn) on all entities within the root.AllPropertiesBut() only excludes properties on the root object.I think...

View Article

Created Issue: Properties().EqualTo(otherObject) works wrong if called on...

Apparently this test should fail but it succeeds!{{ [TestMethod] public void Other_should_have_same_props() { var first = new { Id = 1, Name = "Bogus", Title = "Jr" }; first.Should().NotBeNull()...

View Article


Source code checked in, #80866

Improved the debugging experience of the structural comparison configuration.

View Article


Commented Feature: Exclude properties on nested objects [11841]

We'd like to compare two aggregate roots ignoring a few audit properties (CreatedBy, CreatedOn) on all entities within the root.AllPropertiesBut() only excludes properties on the root object.I think...

View Article

New Post: Get all array properties

I want to test that my default ctor initialize all array properties with empty arrays, Is it possible to get all array properties from class using FluentAssertion to know are they all initialized?

View Article

New Post: Get all array properties

The only way to do that right now is to use the .Should().NotBeEmpty() on the collection properties. This will also verify that the collection is not null.

View Article

Source code checked in, #80885

Included the current equality configuration in the assertion exception.

View Article


Commented Feature: Exclude properties on nested objects [11841]

We'd like to compare two aggregate roots ignoring a few audit properties (CreatedBy, CreatedOn) on all entities within the root.AllPropertiesBut() only excludes properties on the root object.I think...

View Article

Commented Feature: Exclude properties on nested objects [11841]

We'd like to compare two aggregate roots ignoring a few audit properties (CreatedBy, CreatedOn) on all entities within the root.AllPropertiesBut() only excludes properties on the root object.I think...

View Article


New Comment on "Documentation"

Typo: "dto.ShouldHave().SharedProperties().IncludingNestedObjects.EqualTo(customer);" should be read as "dto.ShouldHave().SharedProperties().IncludingNestedObjects().EqualTo(customer);"

View Article

Source code checked in, #80959

When strings differ in length, it will report the expected and actual lengths as part of the failure messages. Fixes some unit tests because of the extended messages when using structural equality...

View Article


Commented Issue: Improved exception message for string comparison [12422]

When comparing long strings, the exception message only tells me that the string is "too short", but it doesn't say how long it is or should have been or where the difference is. The assertions in...

View Article

Source code checked in, #80981

First attempt to support attribute-based value formatters. Not working for WP7 and SL yet.

View Article

Commented Feature: Allow for custom IValueFormatters [12364]

I have some cases where I override ToString on my class under test but I'd prefer to use the DefaultValueFormatter as it display nicer formatted results for me (though there are a few properties I...

View Article
Browsing all 1402 articles
Browse latest View live


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