Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better handling of NaN in numeric assertions.
- Loading branch information
1 parent
ebea08e
commit 7b3f30e
Showing
8 changed files
with
1,615 additions
and
900 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace FluentAssertions.Numeric | ||
{ | ||
internal class DoubleAssertions : NumericAssertions<double> | ||
{ | ||
public DoubleAssertions(double value) | ||
: base(value) | ||
{ | ||
} | ||
|
||
private protected override bool IsNaN(double value) => double.IsNaN(value); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace FluentAssertions.Numeric | ||
{ | ||
internal class FloatAssertions : NumericAssertions<float> | ||
{ | ||
public FloatAssertions(float value) | ||
: base(value) | ||
{ | ||
} | ||
|
||
private protected override bool IsNaN(float value) => float.IsNaN(value); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.