Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Data.Test/GrassCoverErosionInwardsFailureMechanismSectionResultTest.cs =================================================================== diff -u -r2cd2b6b5b050b005019185c1c2a4dd28ae0e2ad2 -ra04c3ef2f95c7bac6e29306413c76e9f481e2aa0 --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Data.Test/GrassCoverErosionInwardsFailureMechanismSectionResultTest.cs (.../GrassCoverErosionInwardsFailureMechanismSectionResultTest.cs) (revision 2cd2b6b5b050b005019185c1c2a4dd28ae0e2ad2) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Data.Test/GrassCoverErosionInwardsFailureMechanismSectionResultTest.cs (.../GrassCoverErosionInwardsFailureMechanismSectionResultTest.cs) (revision a04c3ef2f95c7bac6e29306413c76e9f481e2aa0) @@ -20,12 +20,10 @@ // All rights reserved. using System; -using Core.Common.Base.Data; using Core.Common.Base.Geometry; using Core.Common.TestUtil; using NUnit.Framework; using Ringtoets.Common.Data.FailureMechanism; -using Ringtoets.Common.Data.TestUtil; using Ringtoets.GrassCoverErosionInwards.Data.TestUtil; namespace Ringtoets.GrassCoverErosionInwards.Data.Test @@ -143,12 +141,11 @@ var sectionResult = new GrassCoverErosionInwardsFailureMechanismSectionResult(CreateSection()); // Call - TestDelegate call = () => sectionResult.AssessmentLayerThree = (RoundedDouble)invalidValue; + TestDelegate call = () => sectionResult.AssessmentLayerThree = invalidValue; // Assert const string expectedMessage = "Kans moet in het bereik [0,0, 1,0] liggen."; - TestHelper.AssertThrowsArgumentExceptionAndTestMessage(call, - expectedMessage); + TestHelper.AssertThrowsArgumentExceptionAndTestMessage(call, expectedMessage); } [Test] @@ -162,11 +159,10 @@ var sectionResult = new GrassCoverErosionInwardsFailureMechanismSectionResult(CreateSection()); // Call - TestDelegate call = () => sectionResult.AssessmentLayerThree = (RoundedDouble)validValue; + sectionResult.AssessmentLayerThree = validValue; // Assert - Assert.DoesNotThrow(call); - Assert.AreEqual(validValue, sectionResult.AssessmentLayerThree, sectionResult.AssessmentLayerThree.GetAccuracy()); + Assert.AreEqual(validValue, sectionResult.AssessmentLayerThree); } private static FailureMechanismSection CreateSection()