Index: Ringtoets/Integration/test/Ringtoets.Integration.Data.Test/StandAlone/SectionResults/ClosingStructureFailureMechanismSectionResultTest.cs =================================================================== diff -u -r7f759fbabca9c41e75d229269f1b21581b373b5f -rf1bf048f691ca575f22e8807911ace0338fa425d --- Ringtoets/Integration/test/Ringtoets.Integration.Data.Test/StandAlone/SectionResults/ClosingStructureFailureMechanismSectionResultTest.cs (.../ClosingStructureFailureMechanismSectionResultTest.cs) (revision 7f759fbabca9c41e75d229269f1b21581b373b5f) +++ Ringtoets/Integration/test/Ringtoets.Integration.Data.Test/StandAlone/SectionResults/ClosingStructureFailureMechanismSectionResultTest.cs (.../ClosingStructureFailureMechanismSectionResultTest.cs) (revision f1bf048f691ca575f22e8807911ace0338fa425d) @@ -24,6 +24,7 @@ using Core.Common.Base.Storage; using NUnit.Framework; using Ringtoets.Common.Data.FailureMechanism; +using Ringtoets.Common.Data.Properties; using Ringtoets.Integration.Data.StandAlone.SectionResults; namespace Ringtoets.Integration.Data.Test.StandAlone.SectionResults @@ -46,7 +47,10 @@ public void Constructor_WithSection_ResultCreatedForSection() { // Setup - var section = new FailureMechanismSection("Section", new[] { new Point2D(0, 0) }); + var section = new FailureMechanismSection("Section", new[] + { + new Point2D(0, 0) + }); // Call var result = new ClosingStructureFailureMechanismSectionResult(section); @@ -64,12 +68,15 @@ [Test] [TestCase(-20)] [TestCase(-1e-6)] - [TestCase(1+1e-6)] + [TestCase(1 + 1e-6)] [TestCase(12)] public void AssessmentLayerTwoA_ForInvalidValues_ThrowsException(double a) { // Setup - var section = new FailureMechanismSection("Section", new[] { new Point2D(0, 0) }); + var section = new FailureMechanismSection("Section", new[] + { + new Point2D(0, 0) + }); var result = new ClosingStructureFailureMechanismSectionResult(section); // Call @@ -78,21 +85,23 @@ // Assert var message = Assert.Throws(test).Message; Assert.AreEqual( - Common.Data.Properties.Resources.ArbitraryProbabilityFailureMechanismSectionResult_AssessmentLayerTwoA_Value_needs_to_be_between_0_and_1, - message - ); + Resources.ArbitraryProbabilityFailureMechanismSectionResult_AssessmentLayerTwoA_Value_needs_to_be_between_0_and_1, + message); } [Test] [TestCase(0)] [TestCase(1e-6)] [TestCase(0.5)] - [TestCase(1-1e-6)] + [TestCase(1 - 1e-6)] [TestCase(1)] public void AssessmentLayerTwoA_ForValidValues_NewValueSet(double a) { // Setup - var section = new FailureMechanismSection("Section", new[] { new Point2D(0, 0) }); + var section = new FailureMechanismSection("Section", new[] + { + new Point2D(0, 0) + }); var result = new ClosingStructureFailureMechanismSectionResult(section); // Call