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 ArticleCreated 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 ArticleSource 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 ArticleClosed 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 ArticleReopened 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 ArticleSource code checked in, #80811
Added extra specs to verify that custom rules are properly evaluated
View ArticleCommented 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 ArticleCreated 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 ArticleSource code checked in, #80866
Improved the debugging experience of the structural comparison configuration.
View ArticleCommented 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 ArticleNew 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 ArticleNew 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 ArticleSource code checked in, #80885
Included the current equality configuration in the assertion exception.
View ArticleCommented 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 ArticleCommented 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 ArticleNew Comment on "Documentation"
Typo: "dto.ShouldHave().SharedProperties().IncludingNestedObjects.EqualTo(customer);" should be read as "dto.ShouldHave().SharedProperties().IncludingNestedObjects().EqualTo(customer);"
View ArticleSource 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 ArticleCommented 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 ArticleSource code checked in, #80981
First attempt to support attribute-based value formatters. Not working for WP7 and SL yet.
View ArticleCommented 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