Index: DamClients/DamUI/trunk/src/Dam/Deltares.Dam.Tests/DikePostProcessRelativeProfilesTest.cs =================================================================== diff -u -r6873 -r6880 --- DamClients/DamUI/trunk/src/Dam/Deltares.Dam.Tests/DikePostProcessRelativeProfilesTest.cs (.../DikePostProcessRelativeProfilesTest.cs) (revision 6873) +++ DamClients/DamUI/trunk/src/Dam/Deltares.Dam.Tests/DikePostProcessRelativeProfilesTest.cs (.../DikePostProcessRelativeProfilesTest.cs) (revision 6880) @@ -121,7 +121,7 @@ return dike; } - public void PostProcessDike(double offset) + private static void PostProcessDike(double offset) { using (Dike dike = CreateDike(offset)) { @@ -140,16 +140,22 @@ // If there is no move, than there is no added layer if (Math.Abs(offset) < cTolerance) { - Assert.That(soilProfile1D.TopLevel, Is.EqualTo(1.0 + offset).Within(cTolerance)); - Assert.That(soilProfile1D.Layers[1].TopLevel, Is.EqualTo(-1.0 + offset).Within(cTolerance)); - Assert.That(soilProfile1D.BottomLevel, Is.EqualTo(-10.0 + offset).Within(cTolerance)); + Assert.Multiple(() => + { + Assert.That(soilProfile1D.TopLevel, Is.EqualTo(1.0 + offset).Within(cTolerance)); + Assert.That(soilProfile1D.Layers[1].TopLevel, Is.EqualTo(-1.0 + offset).Within(cTolerance)); + Assert.That(soilProfile1D.BottomLevel, Is.EqualTo(-10.0 + offset).Within(cTolerance)); + }); } else { - // If there is a move, than there is one added (top) layer - Assert.That(soilProfile1D.TopLevel, Is.EqualTo(2.0 + offset).Within(cTolerance)); - Assert.That(soilProfile1D.Layers[2].TopLevel, Is.EqualTo(-1.0 + offset).Within(cTolerance)); - Assert.That(soilProfile1D.BottomLevel, Is.EqualTo(-10.0 + offset).Within(cTolerance)); + Assert.Multiple(() => + { + // If there is a move, than there is one added (top) layer + Assert.That(soilProfile1D.TopLevel, Is.EqualTo(2.0 + offset).Within(cTolerance)); + Assert.That(soilProfile1D.Layers[2].TopLevel, Is.EqualTo(-1.0 + offset).Within(cTolerance)); + Assert.That(soilProfile1D.BottomLevel, Is.EqualTo(-10.0 + offset).Within(cTolerance)); + }); } } }