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

Created Issue: Output text of a collection assertion should be more friendly...

The output text of a collection assertion (Should().BeEquivalentTo()) should describe specific differences in objects like ShouldHave().AllProperties().EqualTo() does.

View Article


Commented Issue: Output text of a collection assertion should be more...

The output text of a collection assertion (Should().BeEquivalentTo()) should describe specific differences in objects like ShouldHave().AllProperties().EqualTo() does.Comments: Just realized that 2.0...

View Article


New Post: Comparing two IEnumerables for Properties is not working

I have an IEnumerable of HappenedBusinessEvents and one of ExpectedBusinessEvents, and I want to assert that they both contain the same BusinessEvents by value, not by reference.I tried it with...

View Article

New Post: Comparing two IEnumerables for Properties is not working

There is a new syntax for that. See http://www.dennisdoomen.net/2012/09/asserting-object-graph-equivalence.html

View Article

New Post: Comparing two IEnumerables for Properties is not working

Thank you, I tried that, but it is not working. Let me provide a small codeexample:public class DomainEvent     {        public readonly Guid ID;        public readonly string Info;        public...

View Article


New Post: Comparing two IEnumerables for Properties is not working

The reason that this test is failing, lies in the fact that the DomainEvent class does not have any public properties. This causes the equivalency validation logic to treat it as a simple object,...

View Article

New Post: Comparing two IEnumerables for Properties is not working

Thank you very much, of course that was it.Sorry for the stupid question due to lack of attention on my side :)

View Article

Created Issue: add new string assertion .Should().BeInFormat(format, args)...

This is similar to wildcards, but I think it will be useful too. If maintainers says ok for that I will be happy to contribute an implementation.

View Article


Created Issue: BeInOrder does not cater for duplicate values [12468]

The internal method BeInOrder does not cater for duplicate values.An array like this {1, 6 12, 12, 15 ,17, 26}Reports that the item at index 2 is in the wrong order. Looking at the code I can see this...

View Article


Created Issue: CollectionAssertions.HaveCount never calls Count property,...

FIrst off, I'm checking out your repo and I'll supply a fix with this issue... tagged in a pull request?Gents, public AndConstraint<TAssertions> HaveCount(int expected, string reason = "", params...

View Article

Commented Issue: CollectionAssertions.HaveCount never calls Count property,...

FIrst off, I'm checking out your repo and I'll supply a fix with this issue... tagged in a pull request?Gents, public AndConstraint<TAssertions> HaveCount(int expected, string reason = "", params...

View Article

Commented Issue: CollectionAssertions.HaveCount never calls Count property,...

FIrst off, I'm checking out your repo and I'll supply a fix with this issue... tagged in a pull request?Gents, public AndConstraint<TAssertions> HaveCount(int expected, string reason = "", params...

View Article

Commented Issue: CollectionAssertions.HaveCount never calls Count property,...

FIrst off, I'm checking out your repo and I'll supply a fix with this issue... tagged in a pull request?Gents, public AndConstraint<TAssertions> HaveCount(int expected, string reason = "", params...

View Article


New Post: name or description of the object being tested?

I'd like to specify the thing being tested? For example, when this assertion fails    target.SystemCheckStatus.Should().Be(SystemCheckStatus.Warning); the message is     "Expected object to be Warning,...

View Article

Created Issue: Windows phone throwing non descript exceptions [12470]

Given the following code.[TestMethod]public void InitialiseSession(){ false.Should().BeTrue();}Results in :New exception: "Could not find windows phone test framework.". I'm using the latest test...

View Article


Created Issue: FluentAssertions 2.0: objects, which are inherited from...

In our project we have classes inherited from collections. These classes have own properties and we should compare their instances only by specified properties and ignore data in collections. But the...

View Article

Edited Issue: FluentAssertions 2.0: objects, which are inherited from...

In our project we have classes inherited from collections. These classes have own properties and we should compare their instances only by specified properties and ignore data in collections. But the...

View Article


Created Issue: Extended reporting for ShouldBeEquivalentTo [12472]

Fluent Assertion 2.0 has excellent method to compare objects: ShouldBeEquivalentTo. It works great for most cases, but stops as soon as a first not matching property or field is found. From time to...

View Article

Commented Issue: Windows phone throwing non descript exceptions [12470]

Given the following code.[TestMethod]public void InitialiseSession(){ false.Should().BeTrue();}Results in :New exception: "Could not find windows phone test framework.". I'm using the latest test...

View Article

New Post: Throw custom exception on failed assertions

Hi, I like the library and I'm about to use it for objects validation in the production code, not in tests. Is it possible to set it to throw my own exception instead of the built-inAssertFailedException?

View Article
Browsing all 1402 articles
Browse latest View live


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