Index: Ringtoets/Common/test/Ringtoets.Common.Data.Test/Structures/StructuresOutputTest.cs =================================================================== diff -u -r21f9de0d12327b2d4319a2e78055d11c66cc7300 -re6671f07e31bef1e5617d8998ce01be60cc648d2 --- Ringtoets/Common/test/Ringtoets.Common.Data.Test/Structures/StructuresOutputTest.cs (.../StructuresOutputTest.cs) (revision 21f9de0d12327b2d4319a2e78055d11c66cc7300) +++ Ringtoets/Common/test/Ringtoets.Common.Data.Test/Structures/StructuresOutputTest.cs (.../StructuresOutputTest.cs) (revision e6671f07e31bef1e5617d8998ce01be60cc648d2) @@ -31,24 +31,31 @@ public class StructuresOutputTest { [Test] - public void Constructor_ProbabilityAssessmentNull_ThrowsArgumentNullException() + [TestCase(true)] + [TestCase(false)] + public void Constructor_ProbabilityAssessmentNull_ThrowsArgumentNullException(bool withIllustrationPoints) { + // Setup + TestGeneralResultFaultTreeIllustrationPoint generalResult = withIllustrationPoints + ? new TestGeneralResultFaultTreeIllustrationPoint() + : null; + // Call - TestDelegate call = () => new StructuresOutput(null); + TestDelegate call = () => new StructuresOutput(null, generalResult); // Assert var exception = Assert.Throws(call); Assert.AreEqual("probabilityAssessmentOutput", exception.ParamName); } [Test] - public void Constructor_ValidProbabilityAssessmentOutput_ReturnsExpectedProperties() + public void Constructor_ValidProbabilityAssessmentOutputAndGeneralResultNulls_ReturnsExpectedProperties() { // Setup var output = new TestProbabilityAssessmentOutput(); // Call - var structuresOutput = new StructuresOutput(output); + var structuresOutput = new StructuresOutput(output, null); // Assert Assert.AreSame(output, structuresOutput.ProbabilityAssessmentOutput); @@ -67,6 +74,7 @@ var structuresOutput = new StructuresOutput(probabilityAssessmentOutput, generalResult); // Assert + Assert.AreSame(probabilityAssessmentOutput, structuresOutput.ProbabilityAssessmentOutput); Assert.AreSame(generalResult, structuresOutput.GeneralResult); Assert.IsTrue(structuresOutput.HasGeneralResult); }