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

Edited Unassigned: NullReferenceException caused by AttributeBasedFormatter...

```(true).Should().BeFalse();```results in```System.NullReferenceException : Object reference not set to an instance of an object at...

View Article


Commented Unassigned: NullReferenceException caused by...

```(true).Should().BeFalse();```results in```System.NullReferenceException : Object reference not set to an instance of an object at...

View Article


Edited Issue: Misleading AllDeclaredPublicPropertiesSelectionRule class [12486]

I would expect this class to provide a list of public properties only. However under the hood, in the SelectProperties method, it is calling GetNonPrivateProperties which can return protected, internal...

View Article

Commented Issue: Misleading AllDeclaredPublicPropertiesSelectionRule class...

I would expect this class to provide a list of public properties only. However under the hood, in the SelectProperties method, it is calling GetNonPrivateProperties which can return protected, internal...

View Article

Edited Issue: ShouldBeEquivalentTo crashes on signature hiding properties...

Take this example. Foo is overriden with new. This crashes TypeExtensions.FindProperty because it will see object Foo and string Foo```c#[TestMethod] public void FluentAssertionsTest(){ var a1 = new...

View Article


Edited Issue: ShouldBeEquivalentTo crashes on signature hiding properties...

Take this example. Foo is overriden with new. This crashes TypeExtensions.FindProperty because it will see object Foo and string Foo```c#[TestMethod] public void FluentAssertionsTest(){ var a1 = new...

View Article

Commented Issue: ShouldBeEquivalentTo crashes on signature hiding properties...

Take this example. Foo is overriden with new. This crashes TypeExtensions.FindProperty because it will see object Foo and string Foo```c#[TestMethod] public void FluentAssertionsTest(){ var a1 = new...

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


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


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: ShouldNotThrow hides stack trace of thrown exception [12473]

When an assertion of the `ShouldNotThrow` family of extension methods fails, the specifics of where in the SUT the exception was thrown is lost. This makes it hard to diagnose because you either need...

View Article

Commented Issue: ShouldNotThrow hides stack trace of thrown exception [12473]

When an assertion of the `ShouldNotThrow` family of extension methods fails, the specifics of where in the SUT the exception was thrown is lost. This makes it hard to diagnose because you either need...

View Article

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


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 Issue: BeInOrder does not cater for duplicate values [12468]

The internal method BeInOrder does not cater for duplicate values.An array like this {1, 6 12, 12, 15 ,17, 26}Reports that the item at index 2 is in the wrong order. Looking at the code I can see this...

View Article


Commented Issue: BeInOrder does not cater for duplicate values [12468]

The internal method BeInOrder does not cater for duplicate values.An array like this {1, 6 12, 12, 15 ,17, 26}Reports that the item at index 2 is in the wrong order. Looking at the code I can see this...

View Article

Edited Issue: Access to EventRecorder [12465]

Hi,Would you consider making to possible to get the EventRecorder for an object and event, so that it is possible to write custom assertions. Without having to save the IEnumerable<EventRecorder>...

View Article


Edited Feature: Access to EventRecorder [12465]

Hi,Would you consider making to possible to get the EventRecorder for an object and event, so that it is possible to write custom assertions. Without having to save the IEnumerable<EventRecorder>...

View Article

Commented Feature: Access to EventRecorder [12465]

Hi,Would you consider making to possible to get the EventRecorder for an object and event, so that it is possible to write custom assertions. Without having to save the IEnumerable<EventRecorder>...

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


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