Index: Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/RingtoetsPipingSurfaceLineTest.cs =================================================================== diff -u -r081badaad87a6e2a6d5c861de9ee95fa1ca6dea3 -rb8976a5e3cf525e419227e409e44ac69a430711a --- Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/RingtoetsPipingSurfaceLineTest.cs (.../RingtoetsPipingSurfaceLineTest.cs) (revision 081badaad87a6e2a6d5c861de9ee95fa1ca6dea3) +++ Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/RingtoetsPipingSurfaceLineTest.cs (.../RingtoetsPipingSurfaceLineTest.cs) (revision b8976a5e3cf525e419227e409e44ac69a430711a) @@ -129,71 +129,6 @@ } [Test] - public void ProjectGeometryToLZ_EmptyCollection_ReturnEmptyCollection() - { - // Setup - var surfaceLine = new RingtoetsPipingSurfaceLine(); - - // Call - RoundedPoint2DCollection lzCoordinates = surfaceLine.ProjectGeometryToLZ(); - - // Assert - CollectionAssert.IsEmpty(lzCoordinates); - Assert.AreEqual(2, lzCoordinates.NumberOfDecimalPlaces); - } - - [Test] - public void ProjectGeometryToLZ_GeometryWithOnePoint_ReturnSinglePointAtZeroXAndOriginalZ() - { - // Setup - var surfaceLine = new RingtoetsPipingSurfaceLine(); - const double originalZ = 3.3; - surfaceLine.SetGeometry(new[] - { - new Point3D(1.1, 2.2, originalZ) - }); - - // Call - RoundedPoint2DCollection lzCoordinates = surfaceLine.ProjectGeometryToLZ(); - - // Assert - CollectionAssert.AreEqual(new[] - { - new Point2D(0.0, originalZ) - }, lzCoordinates); - Assert.AreEqual(2, lzCoordinates.NumberOfDecimalPlaces); - } - - [Test] - public void ProjectGeometryToLZ_GeometryWithMultiplePoints_ProjectPointsOntoLzPlaneKeepingOriginalZ() - { - // Setup - var surfaceLine = new RingtoetsPipingSurfaceLine(); - surfaceLine.SetGeometry(new[] - { - new Point3D(1.0, 1.0, 2.2), - new Point3D(2.0, 3.0, 4.4), // Outlier from line specified by extrema - new Point3D(3.0, 4.0, 7.7) - }); - - // Call - RoundedPoint2DCollection actual = surfaceLine.ProjectGeometryToLZ(); - - // Assert - double length = Math.Sqrt(2 * 2 + 3 * 3); - const double secondCoordinateFactor = (2.0 * 1.0 + 3.0 * 2.0) / (2.0 * 2.0 + 3.0 * 3.0); - var expectedCoordinatesX = new[] - { - 0.0, - secondCoordinateFactor * length, - length - }; - CollectionAssert.AreEqual(expectedCoordinatesX, actual.Select(p => p.X).ToArray(), new DoubleWithToleranceComparer(actual.GetAccuracy())); - CollectionAssert.AreEqual(surfaceLine.Points.Select(p => p.Z).ToArray(), actual.Select(p => p.Y).ToArray()); - Assert.AreEqual(2, actual.NumberOfDecimalPlaces); - } - - [Test] public void SetGeometry_GeometryIsNull_ThrowsArgumentNullException() { // Setup