Index: Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.TestUtil.Test/IllustrationPoints/TestGeneralResultTest.cs =================================================================== diff -u -r797860a90e2e806327a86f77e20a368eaf25d6ed -re6e0f3a201a644070997b531763b63f19d44df0e --- Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.TestUtil.Test/IllustrationPoints/TestGeneralResultTest.cs (.../TestGeneralResultTest.cs) (revision 797860a90e2e806327a86f77e20a368eaf25d6ed) +++ Ringtoets/HydraRing/test/Ringtoets.HydraRing.Calculation.TestUtil.Test/IllustrationPoints/TestGeneralResultTest.cs (.../TestGeneralResultTest.cs) (revision e6e0f3a201a644070997b531763b63f19d44df0e) @@ -68,6 +68,28 @@ Assert.IsInstanceOf(topLevelIllustrationPoint.Value.Data); } + [Test] + public void CreateGeneralResultWithSubMechanismIllustrationPoints_ExpectedProperties() + { + // Call + TestGeneralResult generalResult = TestGeneralResult.CreateGeneralResultWithSubMechanismIllustrationPoints(); + + // Assert + Assert.IsInstanceOf(generalResult); + Assert.AreEqual(0, generalResult.Beta); + + var expectedWindDirection = new TestWindDirection(); + AssertWindDirection(expectedWindDirection, generalResult.GoverningWindDirection); + CollectionAssert.IsEmpty(generalResult.Stochasts); + + KeyValuePair topLevelIllustrationPoint = + generalResult.IllustrationPoints.Single(); + WindDirectionClosingSituation actualWindDirectionClosingSituation = topLevelIllustrationPoint.Key; + AssertWindDirection(expectedWindDirection, actualWindDirectionClosingSituation.WindDirection); + Assert.AreEqual("closing situation", actualWindDirectionClosingSituation.ClosingSituation); + Assert.IsInstanceOf(topLevelIllustrationPoint.Value.Data); + } + private static void AssertWindDirection(WindDirection expected, WindDirection actual) { Assert.AreEqual(expected.Name, actual.Name);