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

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 Article


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


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

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

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


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

Source code checked in, #74656

Fixed a potential null-reference exception when the complex structure contains a null object.

View Article

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


Created Release: 1.7.1

@

View Article


Updated Release: Release 1.7.1

@

View Article

Source code checked in, #74657

Merged a fixed from the 1.7.0 branch.

View Article

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

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


Source code checked in, #74680

Version changes for the 1.7.1 release

View Article

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


Released: 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 Article

Reviewed: Release 1.7.1 (mar 23, 2012)

Rated 5 Stars (out of 5) - Great work!!!

View Article


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

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

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


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