Index: Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.KernelWrapper/Creators/Input/SlipPlaneConstraintsCreator.cs =================================================================== diff -u -rfe0f11c19023237d7f3629c2206b4fe5eb5e121f -r972d3010bf17b9b332af4944ff20b54fd795a4b5 --- Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.KernelWrapper/Creators/Input/SlipPlaneConstraintsCreator.cs (.../SlipPlaneConstraintsCreator.cs) (revision fe0f11c19023237d7f3629c2206b4fe5eb5e121f) +++ Riskeer/MacroStabilityInwards/src/Riskeer.MacroStabilityInwards.KernelWrapper/Creators/Input/SlipPlaneConstraintsCreator.cs (.../SlipPlaneConstraintsCreator.cs) (revision 972d3010bf17b9b332af4944ff20b54fd795a4b5) @@ -27,16 +27,16 @@ namespace Riskeer.MacroStabilityInwards.KernelWrapper.Creators.Input { /// - /// Creates instances which are required by . + /// Creates instances which are required by . /// public static class SlipPlaneConstraintsCreator { /// - /// Creates a based on the given + /// Creates a based on the given /// which can be used by . /// /// The to get the information from. - /// A new with the given information from . + /// A new with the given information from . /// Thrown when is null. public static SlipPlaneConstraints Create(UpliftVanSlipPlaneConstraints input) { @@ -49,8 +49,8 @@ { SlipPlaneMinDepth = input.SlipPlaneMinimumDepth, SlipPlaneMinLength = input.SlipPlaneMinimumLength, - XLeftMin = input.ZoneBoundaryLeft, - XLeftMax = input.ZoneBoundaryRight + XEntryMin = input.ZoneBoundaryLeft, + XEntryMax = input.ZoneBoundaryRight }; } } Index: Riskeer/MacroStabilityInwards/test/Riskeer.MacroStabilityInwards.KernelWrapper.Test/Creators/Input/SlipPlaneConstraintsCreatorTest.cs =================================================================== diff -u -r68a64d20c6cc528ca79e5173cfcc1600c9d2147f -r972d3010bf17b9b332af4944ff20b54fd795a4b5 --- Riskeer/MacroStabilityInwards/test/Riskeer.MacroStabilityInwards.KernelWrapper.Test/Creators/Input/SlipPlaneConstraintsCreatorTest.cs (.../SlipPlaneConstraintsCreatorTest.cs) (revision 68a64d20c6cc528ca79e5173cfcc1600c9d2147f) +++ Riskeer/MacroStabilityInwards/test/Riskeer.MacroStabilityInwards.KernelWrapper.Test/Creators/Input/SlipPlaneConstraintsCreatorTest.cs (.../SlipPlaneConstraintsCreatorTest.cs) (revision 972d3010bf17b9b332af4944ff20b54fd795a4b5) @@ -20,7 +20,7 @@ // All rights reserved. using System; -using Deltares.MacroStability.Data; +using Deltares.MacroStability.CSharpWrapper.Input; using NUnit.Framework; using Riskeer.MacroStabilityInwards.KernelWrapper.Calculators.UpliftVan.Input; using Riskeer.MacroStabilityInwards.KernelWrapper.Creators.Input; @@ -36,8 +36,8 @@ void Call() => SlipPlaneConstraintsCreator.Create(null); // Assert - string paramName = Assert.Throws(Call).ParamName; - Assert.AreEqual("input", paramName); + var exception = Assert.Throws(Call); + Assert.AreEqual("input", exception.ParamName); } [Test] @@ -54,13 +54,10 @@ // Assert Assert.AreEqual(upliftVanSlipPlaneConstraints.SlipPlaneMinimumDepth, slipPlaneConstraints.SlipPlaneMinDepth); Assert.AreEqual(upliftVanSlipPlaneConstraints.SlipPlaneMinimumLength, slipPlaneConstraints.SlipPlaneMinLength); - Assert.AreEqual(upliftVanSlipPlaneConstraints.ZoneBoundaryLeft, slipPlaneConstraints.XLeftMin); - Assert.AreEqual(upliftVanSlipPlaneConstraints.ZoneBoundaryRight, slipPlaneConstraints.XLeftMax); - Assert.IsTrue(slipPlaneConstraints.AllowLeftToRight); // Irrelevant - Assert.IsTrue(slipPlaneConstraints.AllowRightToLeft); // Irrelevant - Assert.IsTrue(slipPlaneConstraints.AllowSwapLeftRight); // Irrelevant - Assert.IsNaN(slipPlaneConstraints.XRightMin); // Irrelevant - Assert.IsNaN(slipPlaneConstraints.XRightMax); // Irrelevant + Assert.AreEqual(upliftVanSlipPlaneConstraints.ZoneBoundaryLeft, slipPlaneConstraints.XEntryMin); + Assert.AreEqual(upliftVanSlipPlaneConstraints.ZoneBoundaryRight, slipPlaneConstraints.XEntryMax); + Assert.IsNaN(slipPlaneConstraints.XExitMin); // Irrelevant + Assert.IsNaN(slipPlaneConstraints.XExitMax); // Irrelevant } } } \ No newline at end of file