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;
actual.Should().BeApproximately(expected, 0.01f);
}
```
Note that the test fails as expected with a double.
Comments: Fixed in commit https://fluentassertions.codeplex.com/SourceControl/changeset/98915d94b473cfb9215080e1ae0fd7bc6b0bb65e
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;
actual.Should().BeApproximately(expected, 0.01f);
}
```
Note that the test fails as expected with a double.
Comments: Fixed in commit https://fluentassertions.codeplex.com/SourceControl/changeset/98915d94b473cfb9215080e1ae0fd7bc6b0bb65e