Skip to content

Commit

Permalink
Fixed tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
DJGosnell committed Feb 8, 2023
1 parent 05bac97 commit 0450099
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DtronixCommon.Tests/BoundaryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ public class BoundaryTests
[Test]
public void OneDimensionalBoundaryIsNotEmpty()
{
Assert.IsFalse(new Boundary(0, -1, 0, 1).IsEmpty);
Assert.IsFalse(new Boundary(-1, 0, 1, 0).IsEmpty);
Assert.IsFalse(new BoundaryF(0, -1, 0, 1).IsEmpty);
Assert.IsFalse(new BoundaryF(-1, 0, 1, 0).IsEmpty);
}

[Test]
public void CanUnionBoundariesWithOneDimension()
{
Assert.AreEqual(new Boundary(-1, -1, 1, 1), new Boundary(0, -1, 0, 1).Union(new Boundary(-1, 0, 1, 0)));
Assert.AreEqual(new BoundaryF(-1, -1, 1, 1), new BoundaryF(0, -1, 0, 1).Union(new BoundaryF(-1, 0, 1, 0)));
}
}

0 comments on commit 0450099

Please sign in to comment.