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

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 Article


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


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

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

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


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

Source code checked in, #77737

Implemented ShouldThrow extension for async methods

View Article

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


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


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

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

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

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


Source code checked in, #78299

Moved various structural comparison classes into dedicated files.

View Article

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

Created Issue: DateTime NotBe() [12220]

public static class DateTimeAssertionsExtendedExtensions { public static AndConstraint<DateTimeAssertions> NotBe(this DateTimeAssertions parent, DateTime expected) { return NotBe(parent,...

View Article


Commented Issue: DateTime NotBe() [12220]

public static class DateTimeAssertionsExtendedExtensions { public static AndConstraint<DateTimeAssertions> NotBe(this DateTimeAssertions parent, DateTime expected) { return NotBe(parent,...

View Article

Source code checked in, #78313

Added static AllTypes class to allow for a more fluent way to select the types from an assembly.

View Article

Commented Issue: Extend attribute assertions with property checks [12186]

See http://fluentassertions.codeplex.com/discussions/279305 and discussion on...

View Article
Browsing all 1402 articles
Browse latest View live


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