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 ArticleNew 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 ArticleNew 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 ArticleNew 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 ArticleNew 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 ArticleNew 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 ArticleNew 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 ArticleNew Post: Getting all the differences between two objects
Thanks for the quick answer! :)
View ArticleCreated 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 ArticleCreated 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 ArticleCommented 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 ArticleCommented 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 ArticleEdited 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 ArticleCommented 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 ArticleCommented 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 ArticleCommented 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 ArticleEdited 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 ArticleEdited 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 ArticleEdited 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 ArticleCreated 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