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 ArticleCommented Unassigned: NullReferenceException caused by...
```(true).Should().BeFalse();```results in```System.NullReferenceException : Object reference not set to an instance of an object at...
View ArticleEdited 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 ArticleCommented 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 ArticleEdited 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 ArticleEdited 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 ArticleCommented 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 ArticleEdited 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 ArticleEdited 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 ArticleCommented 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 ArticleEdited 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 ArticleCommented 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 ArticleCommented 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 ArticleCommented 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 ArticleEdited 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 ArticleCommented 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 ArticleEdited 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 ArticleEdited 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 ArticleCommented 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 ArticleEdited 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