Index: Ringtoets/Common/test/Ringtoets.Common.Forms.Test/PresentationObjects/StructuresOutputContextTest.cs =================================================================== diff -u -rbf42d7f7a0afd26840ae4bbecd47ab417b2c4915 -r62c2ec9cb0416527762e077df380cbfb473dc9dc --- Ringtoets/Common/test/Ringtoets.Common.Forms.Test/PresentationObjects/StructuresOutputContextTest.cs (.../StructuresOutputContextTest.cs) (revision bf42d7f7a0afd26840ae4bbecd47ab417b2c4915) +++ Ringtoets/Common/test/Ringtoets.Common.Forms.Test/PresentationObjects/StructuresOutputContextTest.cs (.../StructuresOutputContextTest.cs) (revision 62c2ec9cb0416527762e077df380cbfb473dc9dc) @@ -42,7 +42,7 @@ mocks.ReplayAll(); // Call - var structuresOutputContext = new StructuresOutputContext(structuresCalculation, assessmentSection); + var structuresOutputContext = new SimpleStructuresOutputContext(structuresCalculation, assessmentSection); // Assert Assert.IsInstanceOf>(structuresOutputContext); @@ -60,12 +60,18 @@ mocks.ReplayAll(); // Call - TestDelegate call = () => new StructuresOutputContext(structuresCalculation, null); + TestDelegate call = () => new SimpleStructuresOutputContext(structuresCalculation, null); // Assert var exception = Assert.Throws(call); Assert.AreEqual("assessmentSection", exception.ParamName); mocks.VerifyAll(); } + + private class SimpleStructuresOutputContext : StructuresOutputContext + { + public SimpleStructuresOutputContext(IStructuresCalculation wrappedData, IAssessmentSection assessmentSection) + : base(wrappedData, assessmentSection) {} + } } } \ No newline at end of file