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

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 Article


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


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

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

Closed Task: Create A4 cheat sheet [10812]

Create an A4-sized cheat sheet with an overview of the supported extension syntax.

View Article


Source code checked in, #66021

Reviewed an external contribution and applied some changes.

View Article

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

Reopened Feature: Add myString.Should().NotContain() and...

View Article


Reopened Feature: Add myString.Should().ContainEquivalentOf("abc") [10740]

View Article


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

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

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

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


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

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


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

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


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

Source code checked in, #66999

Internal change so that the Verification class does not prepend "because" when the reason starts with "for"

View Article

Commented 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
Browsing all 1402 articles
Browse latest View live


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