Index: DamEngine/trunk/src/Deltares.DamEngine.Data.Tests/Geotechnics/GeometryHelperTests.cs =================================================================== diff -u -r5028 -r5034 --- DamEngine/trunk/src/Deltares.DamEngine.Data.Tests/Geotechnics/GeometryHelperTests.cs (.../GeometryHelperTests.cs) (revision 5028) +++ DamEngine/trunk/src/Deltares.DamEngine.Data.Tests/Geotechnics/GeometryHelperTests.cs (.../GeometryHelperTests.cs) (revision 5034) @@ -62,11 +62,11 @@ Assert.That(geometryBounds.Left, Is.EqualTo(-2).Within(cTolerance)); Assert.That(soilProfile2D.Geometry.Left, Is.EqualTo(-2).Within(cTolerance)); // At first there are 3 surfaces, but after extending the right boundary, there are 6 surfaces - Assert.That(soilProfile2D.Geometry.Surfaces.Count, Is.EqualTo(6)); + Assert.That(soilProfile2D.Geometry.Surfaces, Has.Count.EqualTo(6)); // the number of points should now be 12 + 4 = 16 - Assert.That(soilProfile2D.Geometry.Points.Count, Is.EqualTo(16)); + Assert.That(soilProfile2D.Geometry.Points, Has.Count.EqualTo(16)); // the number of curves should now be 14 + 7 = 21 - Assert.That(soilProfile2D.Geometry.Curves.Count, Is.EqualTo(21)); + Assert.That(soilProfile2D.Geometry.Curves, Has.Count.EqualTo(21)); }); } @@ -97,11 +97,11 @@ { Assert.That(soilProfile2D.Geometry.Right, Is.EqualTo(12).Within(cTolerance)); // At first there are 3 surfaces, but after extending the right boundary, there are 6 surfaces - Assert.That(soilProfile2D.Geometry.Surfaces.Count, Is.EqualTo(6)); + Assert.That(soilProfile2D.Geometry.Surfaces, Has.Count.EqualTo(6)); // the number of points should now be 12 + 4 = 16 - Assert.That(soilProfile2D.Geometry.Points.Count, Is.EqualTo(16)); + Assert.That(soilProfile2D.Geometry.Points, Has.Count.EqualTo(16)); // the number of curves should now be 14 + 7 = 21 - Assert.That(soilProfile2D.Geometry.Curves.Count, Is.EqualTo(21)); + Assert.That(soilProfile2D.Geometry.Curves, Has.Count.EqualTo(21)); }); } @@ -137,11 +137,11 @@ Assert.That(geometryBounds.Left, Is.EqualTo(2).Within(cTolerance)); Assert.That(soilProfile2D.Geometry.Left, Is.EqualTo(2).Within(cTolerance)); // At first there are 3 surfaces, after cutting the boundary, there still must be 3 surfaces - Assert.That(soilProfile2D.Geometry.Surfaces.Count, Is.EqualTo(3)); + Assert.That(soilProfile2D.Geometry.Surfaces, Has.Count.EqualTo(3)); // At first there are 12 points, after cutting the boundary, there still must be 12 points - Assert.That(soilProfile2D.Geometry.Points.Count, Is.EqualTo(12)); + Assert.That(soilProfile2D.Geometry.Points, Has.Count.EqualTo(12)); // At first there are 14 curves, after cutting the boundary, there still must be 14 curves - Assert.That(soilProfile2D.Geometry.Curves.Count, Is.EqualTo(14)); + Assert.That(soilProfile2D.Geometry.Curves, Has.Count.EqualTo(14)); }); } @@ -167,11 +167,11 @@ Assert.That(geometryBounds.Right, Is.EqualTo(8).Within(cTolerance)); Assert.That(soilProfile2D.Geometry.Right, Is.EqualTo(8).Within(cTolerance)); // At first there are 3 surfaces, after cutting the boundary, there still must be 3 surfaces - Assert.That(soilProfile2D.Geometry.Surfaces.Count, Is.EqualTo(3)); + Assert.That(soilProfile2D.Geometry.Surfaces, Has.Count.EqualTo(3)); // At first there are 12 points, after cutting the boundary, there still must be 12 points - Assert.That(soilProfile2D.Geometry.Points.Count, Is.EqualTo(12)); + Assert.That(soilProfile2D.Geometry.Points, Has.Count.EqualTo(12)); // At first there are 14 curves, after cutting the boundary, there still must be 14 curves - Assert.That(soilProfile2D.Geometry.Curves.Count, Is.EqualTo(14)); + Assert.That(soilProfile2D.Geometry.Curves, Has.Count.EqualTo(14)); }); } } \ No newline at end of file