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

Edited Issue: System.IO.FileLoadException in AttributeBasedFormatter.AllTypes...

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


Commented 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


New Post: Why so many negation methods?

I'm really curious about this too. What would it take to implement it.Should().Not().BeWhatever()?

View Article

New Post: Generating documentation from fluent assertions

I'm interested in a way to generate test documentation from assertions to build a report.public class FooSpec() { public void WhenInitialized() { var foo = new Foo(); Foo.Bar.Should().NotBeNull();...

View Article

New Post: Why so many negation methods?

I remember that at the time we started this project, there were similar libraries that did support that, but also that we felt they were a bit too noisy. In retrospect, it might have been a good...

View Article


New Post: Generating documentation from fluent assertions

That would require parsing IL code, so that should be pretty difficult. We're just using C#'s support for extension methods, so there's nothing to extract metadata from.

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

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


Created Issue: Add BeApproximately to decimal [12477]

When asserting on floats and doubles you should use the BeApproximately assertion, the same is the case for decimals, but here BeApproximately aren't allowed, and you are forced to use BeInRange...

View Article


Commented Issue: Add BeApproximately to decimal [12477]

When asserting on floats and doubles you should use the BeApproximately assertion, the same is the case for decimals, but here BeApproximately aren't allowed, and you are forced to use BeInRange...

View Article

Created Issue: Issue with normal Should Be call [12478]

Hi I receive an exception when i make a call like this:```etuResponse.Header.RspCode.Should().Be(0);```Thats all. I am doing nothing else.RspCode has the value 234.I am using MSTest, Visual Studio...

View Article

Commented Issue: Issue with normal Should Be call [12478]

Hi I receive an exception when i make a call like this:```etuResponse.Header.RspCode.Should().Be(0);```Thats all. I am doing nothing else.RspCode has the value 234.I am using MSTest, Visual Studio...

View Article

Commented Issue: Issue with normal Should Be call [12478]

Hi I receive an exception when i make a call like this:```etuResponse.Header.RspCode.Should().Be(0);```Thats all. I am doing nothing else.RspCode has the value 234.I am using MSTest, Visual Studio...

View Article


Commented Issue: Windows phone throwing non descript exceptions [12470]

Given the following code.[TestMethod]public void InitialiseSession(){ false.Should().BeTrue();}Results in :New exception: "Could not find windows phone test framework.". I'm using the latest test...

View Article

Commented Issue: Windows phone throwing non descript exceptions [12470]

Given the following code.[TestMethod]public void InitialiseSession(){ false.Should().BeTrue();}Results in :New exception: "Could not find windows phone test framework.". I'm using the latest test...

View Article


Edited Issue: Add BeApproximately to decimal [12477]

When asserting on floats and doubles you should use the BeApproximately assertion, the same is the case for decimals, but here BeApproximately aren't allowed, and you are forced to use BeInRange...

View Article

Edited Issue: Add BeApproximately to decimal [12477]

When asserting on floats and doubles you should use the BeApproximately assertion, the same is the case for decimals, but here BeApproximately aren't allowed, and you are forced to use BeInRange...

View Article


Created Issue: False positive with Should().BeApproximatively and float.NaN...

Hi,The method BeApproximatively does not fail if the actual value is float.NaN.Here is the test :```[Fact] public void Test_ShouldFail(){ var actual = float.NaN; var expected = 5f;...

View Article

Commented Issue: False positive with Should().BeApproximatively and float.NaN...

Hi,The method BeApproximatively does not fail if the actual value is float.NaN.Here is the test :```[Fact] public void Test_ShouldFail(){ var actual = float.NaN; var expected = 5f;...

View Article

Edited Issue: False positive with Should().BeApproximatively and float.NaN...

Hi,The method BeApproximatively does not fail if the actual value is float.NaN.Here is the test :```[Fact] public void Test_ShouldFail(){ var actual = float.NaN; var expected = 5f;...

View Article
Browsing all 1402 articles
Browse latest View live


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