Index: src/Deltares.Geotechnics.IO.Tests/CharacteristicPointsImporterTest.cs =================================================================== diff -u -r51 -r58 --- src/Deltares.Geotechnics.IO.Tests/CharacteristicPointsImporterTest.cs (.../CharacteristicPointsImporterTest.cs) (revision 51) +++ src/Deltares.Geotechnics.IO.Tests/CharacteristicPointsImporterTest.cs (.../CharacteristicPointsImporterTest.cs) (revision 58) @@ -20,24 +20,15 @@ [Test] [TestCase(characteristicPointsFilename)] // Ringtoets format [TestCase("characteristicpointsDAM.csv")] // Dam format - public void ImportReturnsCorrectCharacteristicPointsWithoutReadingSurfaceLines(string fileName) + public void ImportRefusesCharacteristicPointsWithoutReadingSurfaceLines(string fileName) { var fullName = Path.Combine(mapTestData, fileName); var characteristicPointsImporter = new CharacteristicPointsImporter(); - List surfaceLines = new List(); - characteristicPointsImporter.Read(fullName, surfaceLines); //Import(); - Assert.AreEqual(32, surfaceLines.Count, "Read incorrect number of surface lines in import of characteristic points"); - var schematizedSurfaceLine = surfaceLines.FirstOrDefault(x => x.Name.Equals("dijkring10_dwp36_9")); - Assert.IsNotNull(schematizedSurfaceLine); - Assert.IsEmpty(schematizedSurfaceLine.Geometry.Points); - Assert.AreEqual(0.0, schematizedSurfaceLine.CharacteristicPoints.GetGeometryPoint(CharacteristicPointType.SurfaceLevelOutside).X, tolerance); - Assert.IsNaN(schematizedSurfaceLine.CharacteristicPoints.GetGeometryPoint(CharacteristicPointType.SurfaceLevelOutside).Z, - "No geometry was imported, therefore no height can be set."); - Assert.AreEqual(100.0, schematizedSurfaceLine.CharacteristicPoints.GetGeometryPoint(CharacteristicPointType.SurfaceLevelInside).X, tolerance); - Assert.IsNaN(schematizedSurfaceLine.CharacteristicPoints.GetGeometryPoint(CharacteristicPointType.SurfaceLevelInside).Z, - "No geometry was imported, therefore no height can be set."); + List surfaceLines = new List(); // empty list of surfaces + characteristicPointsImporter.Read(fullName, surfaceLines); + Assert.AreEqual(0, surfaceLines.Count, "Read incorrect number of surface lines in import of characteristic points"); } [Test]