Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PresentationObjects/MacroStabilityInwardsOutputContextTest.cs =================================================================== diff -u -rf2ba7f68f5de2fc3c8dec8baf7326808120cee52 -r10fc7315f4478647b2708f74c3e596cdf0e5a98c --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PresentationObjects/MacroStabilityInwardsOutputContextTest.cs (.../MacroStabilityInwardsOutputContextTest.cs) (revision f2ba7f68f5de2fc3c8dec8baf7326808120cee52) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PresentationObjects/MacroStabilityInwardsOutputContextTest.cs (.../MacroStabilityInwardsOutputContextTest.cs) (revision 10fc7315f4478647b2708f74c3e596cdf0e5a98c) @@ -19,11 +19,9 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. -using System; using Core.Common.Controls.PresentationObjects; using NUnit.Framework; using Ringtoets.MacroStabilityInwards.Data; -using Ringtoets.MacroStabilityInwards.Data.TestUtil; using Ringtoets.MacroStabilityInwards.Forms.PresentationObjects; namespace Ringtoets.MacroStabilityInwards.Forms.Test.PresentationObjects @@ -32,41 +30,17 @@ public class MacroStabilityInwardsOutputContextTest { [Test] - public void Constructor_WithoutOutput_ThrowsArgumentNullException() - { - // Call - TestDelegate test = () => new MacroStabilityInwardsOutputContext(null, new TestMacroStabilityInwardsSemiProbabilisticOutput()); - - // Assert - string paramName = Assert.Throws(test).ParamName; - Assert.AreEqual("wrappedData", paramName); - } - - [Test] - public void Constructor_WithoutSemiProbabilisticOutput_ThrowsArgumentNullException() - { - // Call - TestDelegate test = () => new MacroStabilityInwardsOutputContext(new TestMacroStabilityInwardsOutput(), null); - - // Assert - string paramName = Assert.Throws(test).ParamName; - Assert.AreEqual("semiProbabilisticOutput", paramName); - } - - [Test] public void Constructor_WithOutputParameters_PropertiesSet() { // Setup - var output = new TestMacroStabilityInwardsOutput(); - var semiProbabilisticOutput = new TestMacroStabilityInwardsSemiProbabilisticOutput(); + var calculation = new MacroStabilityInwardsCalculation(); // Call - var context = new MacroStabilityInwardsOutputContext(output, semiProbabilisticOutput); + var context = new MacroStabilityInwardsOutputContext(calculation); // Assert - Assert.IsInstanceOf>(context); - Assert.AreSame(output, context.WrappedData); - Assert.AreSame(semiProbabilisticOutput, context.SemiProbabilisticOutput); + Assert.IsInstanceOf>(context); + Assert.AreSame(calculation, context.WrappedData); } } } \ No newline at end of file