Created Issue: Extend ShouldThrow*() to Func [12148]
Extend the ShouldThrow*() methods for Func<Task> too so you can work with async methods:Func<Task> foo = async () => { await DoSthAsync(); }foo.ShouldThrow<ArgumentNullException>();
View ArticleNew Post: Error when validating a list
I am trying to validate that 1 collection is equivalent to another collection. The validation is failing with the following error... Expected collection { MyCoolApp.Business.Models.StateAbbreviation...
View ArticleNew Post: Error when validating a list
That's because collection.Should().BeEquivalentTo() relies on the Equals() implementation of those items. And if you don't explicitly implement Equals(), it will rely on the default .NET Framework...
View ArticleReviewed: Release 1.7.1 (May 15, 2012)
Rated 4 Stars (out of 5) - Great project. Unfortunately still has some bugs that get in the way in my project. Dev is very active in ironing them out, though. Responds very quickly to bug reports. My...
View ArticleNew Post: Error when validating a list
I knew it was something simple. Thanks!! Sent from my iPhone On May 15, 2012, at 2:58 AM, dennisdoomen <notifications@codeplex.com> wrote: From: dennisdoomen That's because...
View ArticleCommented Issue: Extend ShouldThrow*() to Func [12148]
Extend the ShouldThrow*() methods for Func<Task> too so you can work with async methods:Func<Task> foo = async () => { await DoSthAsync();...
View ArticleCommented Issue: Extend ShouldThrow*() to Func [12148]
Extend the ShouldThrow*() methods for Func<Task> too so you can work with async methods:Func<Task> foo = async () => { await DoSthAsync();...
View ArticleNew Post: Looking for an item in a collection having all properties but
Hi, I need to assert in case a collection does not contain a specific item. The problem is that due to precision issues in DateTime property (ms & tick count are truncated while reading from DB),...
View ArticleCreated Issue: Extend attribute assertions with property checks [12186]
See http://fluentassertions.codeplex.com/discussions/279305 and discussion on http://stackoverflow.com/questions/10752485/how-do-i-test-a-controller-to-ensure-that-the-authorize-filter-is-applied-to-it
View ArticleCommented Issue: 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 Issue: Should().BeApproximately() gives a false positive when...
I asked the following question on StackOverflow a few days ago, because I wasn't sure if I had missed something regarding nullable comparison, or if there is an actual bug in FluentAssertions:...
View ArticleReopened Issue: 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, #78299
Moved various structural comparison classes into dedicated files.
View ArticleClosed 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: Support Be() on decimal and decimal? [12219]
Going through code we've added to our project. public class NumericAssertionsExtended<T> : NumericAssertions<T> { protected internal NumericAssertionsExtended(T value) : base(value) { } }...
View ArticleCreated Issue: DateTime NotBe() [12220]
public static class DateTimeAssertionsExtendedExtensions { public static AndConstraint<DateTimeAssertions> NotBe(this DateTimeAssertions parent, DateTime expected) { return NotBe(parent,...
View ArticleCommented Issue: DateTime NotBe() [12220]
public static class DateTimeAssertionsExtendedExtensions { public static AndConstraint<DateTimeAssertions> NotBe(this DateTimeAssertions parent, DateTime expected) { return NotBe(parent,...
View ArticleSource code checked in, #78313
Added static AllTypes class to allow for a more fluent way to select the types from an assembly.
View ArticleCommented Issue: Extend attribute assertions with property checks [12186]
See http://fluentassertions.codeplex.com/discussions/279305 and discussion on...
View Article