Created Issue: BeSubsetOf and BeEquivalentTo should work with empty sets [10834]
In the current implementations of BeSubsetOf and BeEquivalentTo there is an explicit check to see if the source is Empty and asserts failure if so. I think this is wrong for two reasons. First, an...
View ArticleCommented Issue: BeSubsetOf and BeEquivalentTo should work with empty sets...
In the current implementations of BeSubsetOf and BeEquivalentTo there is an explicit check to see if the source is Empty and asserts failure if so. I think this is wrong for two reasons. First, an...
View ArticleClosed Feature: Add extension ShouldNotRaise [10234]
It would be helpfull if the conterpart of the ShouldRaise, ShouldNotRaise, is added. I've got several tests where I want to check that a specific event is NOT raised.
View ArticleClosed Issue: Assertion on byte values [10173]
HiDue the missing overloads with a byte argument of the Should() method, assertions on values of type byte would almost fail because they are treated as assertions on objects.It would be nice if those...
View ArticleClosed Task: Create A4 cheat sheet [10812]
Create an A4-sized cheat sheet with an overview of the supported extension syntax.
View ArticleSource code checked in, #66021
Reviewed an external contribution and applied some changes.
View ArticleReopened Issue: Better readability with extension methods on int [10087]
Include Minutes(), Hours() and Days() extension methods on integers, for better readability of DateTime assertions.For example:public static TimeSpan Minutes(this int source){ return...
View ArticlePatch Uploaded: #9266
marcoerni has uploaded a patch. Description:HiI have added some assertion extensions for Guid values such as BeEmpty() and NotBeEmpty().It would be great if you can integrate the provided...
View ArticleCreated Issue: Add Should().BeBinarySerializable() and...
Please add methods to assert that class is Binary serializable and XML serializable.It should serialize / deserialize / compare properties.
View ArticleNew Post: TypeLoadException on local MSTest runs in VS
Hi; I'm trying out Fluent Assertions 1.4.0.0 (.NET 3.5 target) and like the BDD style it allows me to write tests a lot. However, I have a problem that all the tests throws a "System.TypeLoadException:...
View ArticleNew Post: TypeLoadException on local MSTest runs in VS
Is it a Fluent Assertions type it is complaining about? Or something from your own code?
View ArticleNew Post: TypeLoadException on local MSTest runs in VS
It is my own types that it fails to load. However, I seem to have solved the problem, without knowing exactly how, by deleteing the MSTest testrunconfig and recreating it anew from scratch.
View ArticleNew Post: TypeLoadException on local MSTest runs in VS
It's probably a corrupted .vsmdi. It might be referring to unit tests that don't exist anymore.
View ArticleCreated Issue: Improve exception message for string.Should.Be(multiple lines)...
The current exception when strings are not equal is:Expected "bc", but "a" is too short.This works well when the excepted and actual value are not multiple lines; ie do not have...
View ArticleCommented Issue: Improve exception message for string.Should.Be(multiple...
The current exception when strings are not equal is:Expected "bc", but "a" is too short.This works well when the excepted and actual value are not multiple lines; ie do not have...
View ArticleCommented Issue: Improve exception message for string.Should.Be(multiple...
The current exception when strings are not equal is:Expected "bc", but "a" is too short.This works well when the excepted and actual value are not multiple lines; ie do not have...
View ArticleSource code checked in, #66999
Internal change so that the Verification class does not prepend "because" when the reason starts with "for"
View ArticleCommented Issue: Property comparison should be a bit smarter [10683]
The ShouldHave().AllProperties() and corresponding variants should not just use the Equals() method to compare individual properties, but attempt to use the built-in .Be()/.Equal() extension methodes...
View Article