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

New Post: I want to test for property value by property name

You can either pass a 'because' reason to the assertion method and use that to clarify the assertion failure. Or, you could temporarily set the Verification.SubjectName. If any value exists, it will be...

View Article


New Post: I want to test for property value by property name

Sorry,Let me clarify. I want to make a statement like:actual.ShouldHave().Properties(propertyName).EqualTo(new Dictionary<string,object> {propertyName, value});

View Article


New Post: I want to test for property value by property name

But that's how it already works. Whenever a property doesn't match, it will show you which property mismatches.

View Article

New Post: I want to test for property value by property name

Yes but I have to specify a property expression not a property name. I'd like to know if there is a way to do this using the property name.I'm sorry, I apparently phrased this question terribly. :)

View Article

New Post: I want to test for property value by property name

Ah, you should use the new API that replaces the ShouldHave() implementation. You can read all about it here.

View Article


New Post: Getting all the differences between two objects

Hi,Using fluent assertions 2.0 , can I get all the differences between two objects of the same class, and not just whether they are equal?Also, is there a method for comparing two list properties...

View Article

New Post: Getting all the differences between two objects

Hi,Thanks for taking the time to post your question. Unfortunately, the current implementation for verifying equivalency only reports the first difference it finds. It might be possible to collect all...

View Article

New Post: Getting all the differences between two objects

Thanks for the quick answer! :)

View Article


Created Issue: silverlight 5 test projects throwing wrong exceptions [12474]

When used against a sl 5 assembly, a fileNotFoundException is thrown when a test fails.I tried recompiling to SL5, and there's an errror in the GenerateHandler method of the EventHandlerFactory. the...

View Article


Created Issue: PropertyAssertion does not throw if a class overwrites...

PropertyAssertions do not work properly if a class overwrites the Equals-method:``` class ClassThatOverwritesEquals{ public int Age { get; set; } public override bool Equals(object obj) { return...

View Article

Commented Issue: PropertyAssertion does not throw if a class overwrites...

PropertyAssertions do not work properly if a class overwrites the Equals-method:``` class ClassThatOverwritesEquals{ public int Age { get; set; } public override bool Equals(object obj) { return...

View Article

Commented Issue: silverlight 5 test projects throwing wrong exceptions [12474]

When used against a sl 5 assembly, a fileNotFoundException is thrown when a test fails.I tried recompiling to SL5, and there's an errror in the GenerateHandler method of the EventHandlerFactory. the...

View Article

Edited Feature: String comparison with 'ignore whitespace' [12423]

The "Should().BeEquivalentTo()" ignores casing, but it would be great to have an option for ignoring whitespace and tab/carriage return/newline characters as well

View Article


Commented Issue: PropertyAssertion does not throw if a class overwrites...

PropertyAssertions do not work properly if a class overwrites the Equals-method:``` class ClassThatOverwritesEquals{ public int Age { get; set; } public override bool Equals(object obj) { return...

View Article

Commented Issue: PropertyAssertion does not throw if a class overwrites...

PropertyAssertions do not work properly if a class overwrites the Equals-method:``` class ClassThatOverwritesEquals{ public int Age { get; set; } public override bool Equals(object obj) { return...

View Article


Commented Feature: String comparison with 'ignore whitespace' [12423]

The "Should().BeEquivalentTo()" ignores casing, but it would be great to have an option for ignoring whitespace and tab/carriage return/newline characters as wellComments: I'm trying to come up with a...

View Article

Edited Feature: String comparison with 'ignore whitespace' [12423]

The "Should().BeEquivalentTo()" ignores casing, but it would be great to have an option for ignoring whitespace and tab/carriage return/newline characters as well

View Article


Edited Feature: 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

Edited Feature: 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

Created Issue: System.IO.FileLoadException in...

I don't know how to reproduce this in simple project, but I am getting this exception on a test project that uses StackExchange's MiniProfiler```Test(s) failed. System.IO.FileLoadException : Could not...

View Article
Browsing all 1402 articles
Browse latest View live


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