Index: Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/PresentationObjects/WaveImpactAsphaltCoverWaveConditionsInputContextTest.cs =================================================================== diff -u -r5826b97a9ae0135d6b9a272605243bfc0ef33995 -r0df9dceeda4ff12e4b57d43b6c7bfd3e4739abf2 --- Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/PresentationObjects/WaveImpactAsphaltCoverWaveConditionsInputContextTest.cs (.../WaveImpactAsphaltCoverWaveConditionsInputContextTest.cs) (revision 5826b97a9ae0135d6b9a272605243bfc0ef33995) +++ Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/PresentationObjects/WaveImpactAsphaltCoverWaveConditionsInputContextTest.cs (.../WaveImpactAsphaltCoverWaveConditionsInputContextTest.cs) (revision 0df9dceeda4ff12e4b57d43b6c7bfd3e4739abf2) @@ -23,7 +23,6 @@ using NUnit.Framework; using Rhino.Mocks; using Ringtoets.Common.Data.AssessmentSection; -using Ringtoets.Common.Data.Hydraulics; using Ringtoets.Common.Data.TestUtil; using Ringtoets.Revetment.Forms.PresentationObjects; using Ringtoets.WaveImpactAsphaltCover.Data; @@ -58,6 +57,7 @@ Assert.IsInstanceOf(context); Assert.AreSame(calculation.InputParameters, context.WrappedData); Assert.AreSame(calculation, context.Calculation); + Assert.AreSame(assessmentSection, context.AssessmentSection); Assert.AreSame(foreshoreProfiles, context.ForeshoreProfiles); Assert.AreSame(assessmentSection.HydraulicBoundaryDatabase.Locations, context.HydraulicBoundaryLocations); mocks.VerifyAll(); @@ -84,26 +84,5 @@ Assert.AreEqual("foreshoreProfiles", exception.ParamName); mocks.VerifyAll(); } - - [Test] - public void Constructor_AssessmentSectionNull_ThrowsArgumentNullException() - { - // Setup - var calculation = new WaveImpactAsphaltCoverWaveConditionsCalculation(); - var foreshoreProfiles = new[] - { - new TestForeshoreProfile() - }; - - // Call - TestDelegate test = () => new WaveImpactAsphaltCoverWaveConditionsInputContext(calculation.InputParameters, - calculation, - foreshoreProfiles, - null); - - // Assert - var exception = Assert.Throws(test); - Assert.AreEqual("assessmentSection", exception.ParamName); - } } } \ No newline at end of file