New Post: CollectionPropertyAssertions
Sorry, I didn't get you. I have created a simple example: public static class AssertionExtensions { public static CollectionAssertions<T> Should<T>(this IEnumerable<T> actual) {...
View ArticleCommented Issue: GetNonPrivateProperties returns empty collection [11886]
GetNonPrivateProperties contains the following check: where (properties == null) || properties.Contains(propertyInfo.Name). In case I use SharedProperties call properties is not null, it is an empty...
View ArticleNew Post: CollectionPropertyAssertions
Ehm, I don't understand your point, really. First you mention CollectionPropertyAssertions, but now you refer to CollectionAsserts, a completely different thing. Your example is almost exactly what it...
View ArticleNew Post: CollectionPropertyAssertions
Sorry, but example from my side. Here is a new one (but actually I don't see big difference between CollectionsAssertions and CollectionPropertyAssertions): public static class AssertionExtensions {...
View ArticleCommented Issue: Fluent Assertion throws System.NullReferenceException [11900]
I have a test performing the following test: alarmConfigViewModel.ShouldHave().AllProperties().IncludingNestedObjects().EqualTo(expectedAlarmConfigViewModel);When it executes it throw a...
View ArticleCommented Issue: Fluent Assertion throws System.NullReferenceException [11900]
I have a test performing the following test: alarmConfigViewModel.ShouldHave().AllProperties().IncludingNestedObjects().EqualTo(expectedAlarmConfigViewModel);When it executes it throw a...
View ArticleSource code checked in, #74656
Fixed a potential null-reference exception when the complex structure contains a null object.
View ArticleClosed Issue: Compare non-nullable to nullable types [11837]
It would be nice to support this scenario: var number = 5; var nullableNumber = (int?) 5; number.Should().Be(nullableNumber);is better than: number.Should().Be(nullableNumber.Value)when nullableNumber...
View ArticleClosed Issue: Fluent Assertion throws System.NullReferenceException [11900]
I have a test performing the following test: alarmConfigViewModel.ShouldHave().AllProperties().IncludingNestedObjects().EqualTo(expectedAlarmConfigViewModel);When it executes it throw a...
View ArticleReopened Issue: Fluent Assertion throws System.NullReferenceException [11900]
I have a test performing the following test: alarmConfigViewModel.ShouldHave().AllProperties().IncludingNestedObjects().EqualTo(expectedAlarmConfigViewModel);When it executes it throw a...
View ArticleUpdated Release: Release 1.7.1 (Mar 22, 2012)
Fixed a bug that occurs when two collections are compared for equality but the collection contains null. Fixed a stack overflow while formatting an object graph containing static cyclic references....
View ArticleReleased: Release 1.7.1 (Mar 22, 2012)
Fixed a bug that occurs when two collections are compared for equality but the collection contains null. Fixed a stack overflow while formatting an object graph containing static cyclic references....
View ArticleClosed Issue: Fluent Assertion throws System.NullReferenceException [11900]
I have a test performing the following test: alarmConfigViewModel.ShouldHave().AllProperties().IncludingNestedObjects().EqualTo(expectedAlarmConfigViewModel);When it executes it throw a...
View ArticleClosed Issue: Building error message throws exception [11789]
HiWe have an assertion like this result.Should().BeSameAs(FindFileResult.NotFound)that fails. When FluentAssertions build the error message, it dumps the values of all properties. In our case this is a...
View ArticleClosed Feature: Don't always throw when a circular dependency is detected...
Just started using your library and so far I find it excellent. One thing though: I use it for comparing NHibernate objects and sometimes I have objects with bi-directional references. The assertions...
View Article