Index: DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.StixFileReader.Tests/StixFileReaderTest.cs =================================================================== diff -u -r6007 -r6436 --- DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.StixFileReader.Tests/StixFileReaderTest.cs (.../StixFileReaderTest.cs) (revision 6007) +++ DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.StixFileReader.Tests/StixFileReaderTest.cs (.../StixFileReaderTest.cs) (revision 6436) @@ -1,4 +1,4 @@ -// Copyright (C) Stichting Deltares 2024. All rights reserved. +// Copyright (C) Stichting Deltares 2025. All rights reserved. // // This file is part of the application DAM - UI. // @@ -19,6 +19,7 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System; using System.IO; using Deltares.Geometry; using Deltares.Geotechnics.Soils; @@ -59,21 +60,21 @@ }); Assert.That(soilProfile2D.Geometry.Surfaces, Has.Count.EqualTo(12)); - ValidationResult[] validationResults = System.Array.Empty(); - for (int index = 0; index < 12; index++) + ValidationResult[] validationResults = Array.Empty(); + for (var index = 0; index < 12; index++) { Assert.That(validationResults, Has.Length.EqualTo(0)); validationResults = soilProfile2D.Surfaces[index].ValidateLayer(); } validationResults = soilProfile2D.Geometry.ValidateGeometry(); Assert.That(validationResults, Has.Length.EqualTo(0)); - + soilProfile2D.Geometry.RegenerateGeometry(); validationResults = soilProfile2D.Geometry.ValidateGeometry(); Assert.That(validationResults, Has.Length.EqualTo(0)); } - + [Test] public void GivenStixFileWithOneInnerLoop_WhenRead_ThenLoopsAreAsExpected() { @@ -111,7 +112,7 @@ Assert.That(soilProfile2D, Is.Not.Null); Assert.That(soilProfile2D.Geometry.Surfaces, Has.Count.EqualTo(3)); - + // L 1 outer loop var surfaceIndex = 1; GeometryLoop outerLoop = soilProfile2D.Geometry.Surfaces[surfaceIndex].OuterLoop; @@ -150,7 +151,7 @@ Assert.That(soilProfile2D, Is.Not.Null); Assert.That(soilProfile2D.Geometry.Surfaces, Has.Count.EqualTo(3)); - + // L 1 outer loop var surfaceIndex = 0; GeometryLoop outerLoop = soilProfile2D.Geometry.Surfaces[surfaceIndex].OuterLoop;