Index: DamClients/DamUI/trunk/src/Dam/Deltares.Dam.Tests/PLLineTest.cs =================================================================== diff -u -r4625 -r4638 --- DamClients/DamUI/trunk/src/Dam/Deltares.Dam.Tests/PLLineTest.cs (.../PLLineTest.cs) (revision 4625) +++ DamClients/DamUI/trunk/src/Dam/Deltares.Dam.Tests/PLLineTest.cs (.../PLLineTest.cs) (revision 4638) @@ -41,16 +41,16 @@ { var plLine = new PLLine(); - Assert.IsNotNull(plLine); + Assert.That(plLine, Is.Not.Null); } [Test] public void TestPointEqualsWithTolerance() { var plLinePoint1 = new PLLinePoint(1.1, 2.1); var plLinePoint2 = new PLLinePoint(1.1, 2.100001); - Assert.IsTrue(plLinePoint2.LocationEquals(plLinePoint1, 0.0001)); - Assert.IsFalse(plLinePoint2.LocationEquals(plLinePoint1, 0.0000001)); + Assert.That(plLinePoint2.LocationEquals(plLinePoint1, 0.0001), Is.True); + Assert.That(plLinePoint2.LocationEquals(plLinePoint1, 0.0000001), Is.False); } [Test] @@ -117,22 +117,22 @@ }); var pointAbove = new GeometryPoint(1, 0, 1); - Assert.IsTrue(plLine.PositionXzOfPointRelatedToPLLine(pointAbove) == PLLinePointPositionXzType.AbovePLLine); + Assert.That(plLine.PositionXzOfPointRelatedToPLLine(pointAbove) == PLLinePointPositionXzType.AbovePLLine, Is.True); var pointBelow = new GeometryPoint(1, 0, -1); - Assert.IsTrue(plLine.PositionXzOfPointRelatedToPLLine(pointBelow) == PLLinePointPositionXzType.BelowPLLine); + Assert.That(plLine.PositionXzOfPointRelatedToPLLine(pointBelow) == PLLinePointPositionXzType.BelowPLLine, Is.True); var pointOn = new GeometryPoint(1, 0, 0); - Assert.IsTrue(plLine.PositionXzOfPointRelatedToPLLine(pointOn) == PLLinePointPositionXzType.OnPLLine); + Assert.That(plLine.PositionXzOfPointRelatedToPLLine(pointOn) == PLLinePointPositionXzType.OnPLLine, Is.True); var pointAboveBeyond = new GeometryPoint(100, 0, 1); - Assert.IsTrue(plLine.PositionXzOfPointRelatedToPLLine(pointAboveBeyond) == PLLinePointPositionXzType.BeyondPLLine); + Assert.That(plLine.PositionXzOfPointRelatedToPLLine(pointAboveBeyond) == PLLinePointPositionXzType.BeyondPLLine, Is.True); var pointBelowBeyond = new GeometryPoint(100, 0, -1); - Assert.IsTrue(plLine.PositionXzOfPointRelatedToPLLine(pointBelowBeyond) == PLLinePointPositionXzType.BeyondPLLine); + Assert.That(plLine.PositionXzOfPointRelatedToPLLine(pointBelowBeyond) == PLLinePointPositionXzType.BeyondPLLine, Is.True); var pointOnBeyond = new GeometryPoint(100, 0, 0); - Assert.IsTrue(plLine.PositionXzOfPointRelatedToPLLine(pointOnBeyond) == PLLinePointPositionXzType.BeyondPLLine); + Assert.That(plLine.PositionXzOfPointRelatedToPLLine(pointOnBeyond) == PLLinePointPositionXzType.BeyondPLLine, Is.True); } } } \ No newline at end of file