Index: DamEngine/trunk/src/Deltares.DamEngine.Data.Tests/Geotechnics/SoilProfile2DTests.cs =================================================================== diff -u -r5201 -r5204 --- DamEngine/trunk/src/Deltares.DamEngine.Data.Tests/Geotechnics/SoilProfile2DTests.cs (.../SoilProfile2DTests.cs) (revision 5201) +++ DamEngine/trunk/src/Deltares.DamEngine.Data.Tests/Geotechnics/SoilProfile2DTests.cs (.../SoilProfile2DTests.cs) (revision 5204) @@ -65,7 +65,13 @@ MaxDifferences = 100 } }; + compare.Config.MembersToIgnore = new List + { + //"Surfaces", + //"Geometry", + //"PreconsolidationStresses" + }; ComparisonResult result = compare.Compare(sourceSoilProfile2D, targetSoilProfile2D); - Assert.That(result.Differences, Is.Empty, "Differences found read/write Input object"); + Assert.That(result.Differences.Count, Is.EqualTo(0), "Differences found read/write Input object"); } } \ No newline at end of file Index: DamEngine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SoilProfile2D.cs =================================================================== diff -u -r5201 -r5204 --- DamEngine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SoilProfile2D.cs (.../SoilProfile2D.cs) (revision 5201) +++ DamEngine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SoilProfile2D.cs (.../SoilProfile2D.cs) (revision 5204) @@ -245,8 +245,8 @@ Point2D geometryPoint2 = topGeometrySurface[checked (topGeometrySurface.Count - 1)]; geometryPoint2.X += 1E-05; geometryPoint2.Z -= 1E-05; - int num = IsPointWithinOldSurfaces(geometryPoint1, oldSurfaces, shift, -1E-05) ? 1 : 0; - bool flag2 = IsPointWithinOldSurfaces(geometryPoint2, oldSurfaces, shift, -1E-05); + int num = this.IsPointWithinOldSurfaces(geometryPoint1, oldSurfaces, shift, -1E-05) ? 1 : 0; + bool flag2 = this.IsPointWithinOldSurfaces(geometryPoint2, oldSurfaces, shift, -1E-05); double d = double.NaN; if (num != 0 && !flag2) { @@ -255,7 +255,7 @@ flag1 = true; d = geometryPoint1.X + 1E-05; } - if (num == 0 && flag2) + if (num == 0 & flag2) { point.X = geometryPoint2.X; point.Z = geometryPoint2.Z; @@ -308,23 +308,23 @@ return null; } - private static double GetXminFromSurfaces(IEnumerable oldSurfaces) + private double GetXminFromSurfaces(IEnumerable oldSurfaces) { double val1 = double.MaxValue; foreach (SoilLayer2D oldSurface in oldSurfaces) val1 = Math.Min(val1, oldSurface.GeometrySurface.OuterLoop.GetMinX()); return val1; } - private static double GetXmaxFromSurfaces(IEnumerable oldSurfaces) + private double GetXmaxFromSurfaces(IEnumerable oldSurfaces) { double val1 = double.MinValue; foreach (SoilLayer2D oldSurface in oldSurfaces) val1 = Math.Max(val1, oldSurface.GeometrySurface.OuterLoop.GetMaxX()); return val1; } - private static bool IsPointWithinOldSurfaces(Point2D point, IEnumerable oldSurfaces, double shift, double deviation) + private bool IsPointWithinOldSurfaces(Point2D point, IEnumerable oldSurfaces, double shift, double deviation) { bool flag = false; point.X -= shift;