Skip to content

Commit

Permalink
Passing PositiveInfinityAndNegativeInfinityShouldBeDifferent
Browse files Browse the repository at this point in the history
  • Loading branch information
GregFinzer committed Apr 7, 2022
1 parent f2f32a3 commit 9577fbb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Compare-NET-Objects-Tests/BugTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,18 @@ public void Cleanup()

#region Tests

[Test]
public void PositiveInfinityAndNegativeInfinityShouldBeDifferent()
{
double positiveInfinity = Double.PositiveInfinity;
double negativeInfinity = Double.NegativeInfinity;

CompareLogic compareLogic = new CompareLogic();
var result = compareLogic.Compare(positiveInfinity, negativeInfinity);
Console.WriteLine(result.DifferencesString);
Assert.IsFalse(result.AreEqual);
}

[Test]
public void CompareDoubleNan()
{
Expand Down

0 comments on commit 9577fbb

Please sign in to comment.