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

Commented Unassigned: Collection should contain other collection behaving...

I want to assert that a collection of simple objects includes a smaller collection of the same object type. For some reason actualCollection.Should().Contain(expectedCollection) is failing with a...

View Article


Edited Feature: Collection should contain other collection behaving...

I want to assert that a collection of simple objects includes a smaller collection of the same object type. For some reason actualCollection.Should().Contain(expectedCollection) is failing with a...

View Article


New Post: Narrowing down after BeOfType and similar assertions

A lot of times we do assertions in two steps. For example, we first assert a certain type and then we do more specific assertions on that type.myVar.Should().BeOfType<SomeSubclass>(); var...

View Article

Edited Issue: Fluent assertions v1.7.1 fails to compare nullable timespans...

Not tested with latest version. It seems that an overload on SimpleTimeSpanAssertions which accepts a Nullable<TimeSpan> is missing. I was able to work around this by writing the next extension...

View Article

Edited Issue: WP8: Extend ShouldThrow() to Func [12485]

As fixed for the issue below in WinRT: http://fluentassertions.codeplex.com/workitem/12148It would be really useful to be fixed as well for Windows Phone 8. Most of the functionality is also async, so...

View Article


Edited Issue: Fluent Assertions should not format exceptions using the...

We use a custom ApplicationErrorException which implements IEnumerable returning a list of parameters associated with that exception.When the verification fails Fluent Assertions formats the exception...

View Article

Commented Issue: Fluent Assertions should not format exceptions using the...

We use a custom ApplicationErrorException which implements IEnumerable returning a list of parameters associated with that exception.When the verification fails Fluent Assertions formats the exception...

View Article

Closed 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


Edited 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


Edited Feature: Asserting the contents of an XElement [12454]

See http://stackoverflow.com/questions/12099510/how-to-test-xelement-and-its-child-elements

View Article

Closed Feature: Asserting the contents of an XElement [12454]

See http://stackoverflow.com/questions/12099510/how-to-test-xelement-and-its-child-elements

View Article

Closed Task: Create A4 cheat sheet [10813]

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

View Article

Closed Issue: FluentAssertions with Continuous Integration [11205]

it would be nice to have FluentAssertions on a CI environment so that everyone can get the latest and greatest build with correct versioning without having to build it manually.If you'd like, I can get...

View Article


Closed Unassigned: XElement.Should().Match() [12489]

Because there are a lot more things to test than just both attributes and elements.Currently I use something like this: ``` C#XElement.As<XNode>().Should().Match<XElement>(x => x.Name ==...

View Article

Closed 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.Comments: No response

View Article


Closed Issue: Add BeNull() for nullable types [12440]

I just added an assertion for a int? field. I expected a Should().BeNull() extension method but it is not there. Writing actual.SomeValue.Should().Be(null); seems wrong compared to all the other nice...

View Article

Closed Feature: Collection should contain other collection behaving...

I want to assert that a collection of simple objects includes a smaller collection of the same object type. For some reason actualCollection.Should().Contain(expectedCollection) is failing with a...

View Article


Closed Unassigned: XElement .Should().Be() gives false positives. [12494]

The current implementation of the Be assertion for XElement is implemented in such a way as to cause apparent false positive tests. It only checks the element names, but other Be() assertions in...

View Article

Closed Unassigned: Print x.0 when x is is a double/float representing a whole...

I certainly will understand if this does not get picked up since there are a lot of other similar situations that would not be as easy to fix, but it would be a nice-to-have so I thought I would throw...

View Article

Closed 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: Won't fix

View Article
Browsing all 1402 articles
Browse latest View live


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