Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/PlLinesCreator/PlLinesCreatorTest.cs =================================================================== diff -u -r2147 -r2150 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/PlLinesCreator/PlLinesCreatorTest.cs (.../PlLinesCreatorTest.cs) (revision 2147) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/PlLinesCreator/PlLinesCreatorTest.cs (.../PlLinesCreatorTest.cs) (revision 2150) @@ -1112,32 +1112,17 @@ plLineCreator.SoilProfile = FactoryForSoilProfiles.CreateClaySandClaySandProfile(); plLineCreator.SurfaceLine = surfaceLineTutorial1; - Location primaryLocation = new Location(); - Location regionalLocation = new Location(); + Location location = new Location(); + PlLines plLines = plLineCreator.CreateAllPlLines(location); + PlLine plLine2 = plLines.Lines[PlLineType.Pl2]; + PlLine plLine4 = plLines.Lines[PlLineType.Pl4]; + Assert.IsTrue(plLine2.Exists()); + Assert.IsTrue(plLine4.Exists()); + Assert.AreEqual(plLine4.Points.Count, plLine2.Points.Count); + Assert.AreEqual(plLine4.Points[0].Z, 4.0); + for (int pointIndex = 0; pointIndex < plLine4.Points.Count; pointIndex++) { - primaryLocation.DamType = DamType.Primary; - PlLines plLines = plLineCreator.CreateAllPlLines(primaryLocation); - PlLine plLine2 = plLines.Lines[PlLineType.Pl2]; - PlLine plLine4 = plLines.Lines[PlLineType.Pl4]; - Assert.IsTrue(plLine2.Exists()); - Assert.IsTrue(plLine4.Exists()); - Assert.AreEqual(plLine4.Points.Count, plLine2.Points.Count); - Assert.AreEqual(plLine4.Points[0].Z, 4.0); - - for (int pointIndex = 0; pointIndex < plLine4.Points.Count; pointIndex++) - { - Assert.IsTrue(plLine2.Points[pointIndex].LocationEquals(plLine4.Points[pointIndex])); - } - - - regionalLocation.DamType = DamType.Regional; - plLines = plLineCreator.CreateAllPlLines(regionalLocation); - plLine2 = plLines.Lines[PlLineType.Pl2]; - plLine4 = plLines.Lines[PlLineType.Pl4]; - Assert.IsTrue(plLine2.Exists()); - Assert.IsTrue(plLine4.Exists()); - Assert.AreEqual(plLine4.Points.Count, plLine2.Points.Count); - Assert.AreEqual(plLine4.Points[0].Z, -0.5); + Assert.IsTrue(plLine2.Points[pointIndex].LocationEquals(plLine4.Points[pointIndex])); } } }