Index: DamEngine/trunk/src/Deltares.DamEngine.Data.Tests/General/GeometryLoopTests.cs =================================================================== diff -u -r4624 -r4627 --- DamEngine/trunk/src/Deltares.DamEngine.Data.Tests/General/GeometryLoopTests.cs (.../GeometryLoopTests.cs) (revision 4624) +++ DamEngine/trunk/src/Deltares.DamEngine.Data.Tests/General/GeometryLoopTests.cs (.../GeometryLoopTests.cs) (revision 4627) @@ -43,7 +43,7 @@ Assert.That(loop.Points, Is.Empty); //Assert.AreEqual(String.Empty, loop.PointsDescription); - Assert.IsEmpty(loop.CurveList); + Assert.That(loop.CurveList, Is.Empty); } [Test] @@ -59,7 +59,7 @@ bool hasArea = loop.HasArea(); // assert - Assert.IsFalse(hasArea); + Assert.That(hasArea, Is.False); } [Test] @@ -76,7 +76,7 @@ bool hasArea = loop.HasArea(); // assert - Assert.IsFalse(hasArea); + Assert.That(hasArea, Is.False); } [Test] @@ -92,7 +92,7 @@ bool hasArea = loop.HasArea(); // assert - Assert.IsTrue(hasArea); + Assert.That(hasArea, Is.True); } [Test] @@ -107,7 +107,7 @@ var c3 = new GeometryCurve(loop.CurveList[1].EndPoint, loop.CurveList[0].HeadPoint); loop.CurveList.Add(c3); // assert - Assert.IsTrue(loop.HasArea()); + Assert.That(loop.HasArea(), Is.True); // reverse curve 1: E-H H-E H-E c1.Reverse(); @@ -116,7 +116,7 @@ loop1.CurveList.Add(c2); loop1.CurveList.Add(c3); // assert - Assert.IsTrue(loop1.HasArea()); + Assert.That(loop1.HasArea(), Is.True); // rereverse c1, reverse c2: H-E E-H H-E c1.Reverse(); @@ -126,7 +126,7 @@ loop2.CurveList.Add(c2); loop2.CurveList.Add(c3); // assert - Assert.IsTrue(loop2.HasArea()); + Assert.That(loop2.HasArea(), Is.True); // rereverse c2, reverse c3: H-E H-E E-H c2.Reverse(); @@ -136,7 +136,7 @@ loop3.CurveList.Add(c2); loop3.CurveList.Add(c3); // assert - Assert.IsTrue(loop3.HasArea()); + Assert.That(loop3.HasArea(), Is.True); // rereverse c3, reverse c1 and c2 : E-H E-H H-E c3.Reverse(); @@ -147,7 +147,7 @@ loop4.CurveList.Add(c2); loop4.CurveList.Add(c3); // assert - Assert.IsTrue(loop4.HasArea()); + Assert.That(loop4.HasArea(), Is.True); // reverse c3 : E-H E-H E-H c3.Reverse(); @@ -156,7 +156,7 @@ loop5.CurveList.Add(c2); loop5.CurveList.Add(c3); // assert - Assert.IsTrue(loop5.HasArea()); + Assert.That(loop5.HasArea(), Is.True); // reverse c2 : E-H H-E E-H c2.Reverse(); @@ -165,7 +165,7 @@ loop6.CurveList.Add(c2); loop6.CurveList.Add(c3); // assert - Assert.IsTrue(loop6.HasArea()); + Assert.That(loop6.HasArea(), Is.True); // reverse 1, rereverse c2 : H-E E-H E-H c1.Reverse(); @@ -175,7 +175,7 @@ loop7.CurveList.Add(c2); loop7.CurveList.Add(c3); // assert - Assert.IsTrue(loop7.HasArea()); + Assert.That(loop7.HasArea(), Is.True); } [Test] @@ -194,7 +194,7 @@ bool hasArea = loop.HasArea(); // assert - Assert.IsFalse(hasArea); + Assert.That(hasArea, Is.False); } [Test] @@ -211,7 +211,7 @@ bool isClockWise = loop.IsClockWise(); // assert - Assert.IsTrue(isClockWise); + Assert.That(isClockWise, Is.True); } [Test] @@ -250,7 +250,7 @@ bool isClockWise = loop.IsClockWise(); // assert - Assert.IsTrue(isClockWise); + Assert.That(isClockWise, Is.True); } [Test] @@ -267,7 +267,7 @@ bool isClockWise = loop.IsClockWise(); // assert - Assert.IsFalse(isClockWise); + Assert.That(isClockWise, Is.False); } [Test] @@ -305,7 +305,7 @@ bool isClockWise = loop.IsClockWise(); // assert - Assert.IsFalse(isClockWise); + Assert.That(isClockWise, Is.False); } [Test] @@ -374,7 +374,7 @@ bool isContained = loop.IsPointInLoopArea(point); // assert - Assert.IsTrue(isContained); + Assert.That(isContained, Is.True); } [Test] @@ -397,7 +397,7 @@ bool isContained = loop.IsPointInLoopArea(point); // assert - Assert.IsTrue(isContained); + Assert.That(isContained, Is.True); } [Test] @@ -420,7 +420,7 @@ bool isContained = loop.IsPointInLoopArea(point); // assert - Assert.IsFalse(isContained); + Assert.That(isContained, Is.False); } [Test] @@ -651,6 +651,6 @@ IList points = loop.Points; // assert - Assert.IsEmpty(points); + Assert.That(points, Is.Empty); } } \ No newline at end of file