Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/HeightStructures/HeightStructuresCalculationEntityReadExtensionsTest.cs =================================================================== diff -u -r72e8e672bbfb506c8a9b71b8999591bae5cbafe7 -r1585e15381fe198a0d592e70e80b1332b9b74cca --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/HeightStructures/HeightStructuresCalculationEntityReadExtensionsTest.cs (.../HeightStructuresCalculationEntityReadExtensionsTest.cs) (revision 72e8e672bbfb506c8a9b71b8999591bae5cbafe7) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/HeightStructures/HeightStructuresCalculationEntityReadExtensionsTest.cs (.../HeightStructuresCalculationEntityReadExtensionsTest.cs) (revision 1585e15381fe198a0d592e70e80b1332b9b74cca) @@ -29,6 +29,7 @@ using Core.Common.TestUtil; using NUnit.Framework; using Ringtoets.Common.Data.DikeProfiles; +using Ringtoets.Common.Data.IllustrationPoints; using Ringtoets.Common.Data.Structures; using Ringtoets.Common.Data.TestUtil; using Ringtoets.HeightStructures.Data; @@ -210,17 +211,18 @@ { // Setup var random = new Random(678); + var generalResultEntity = new GeneralResultFaultTreeIllustrationPointEntity + { + GoverningWindDirectionName = "name", + GoverningWindDirectionAngle = random.NextDouble() + }; var entity = new HeightStructuresCalculationEntity { HeightStructuresOutputEntities = { new HeightStructuresOutputEntity { - GeneralResultFaultTreeIllustrationPointEntity = new GeneralResultFaultTreeIllustrationPointEntity - { - GoverningWindDirectionName = "name", - GoverningWindDirectionAngle = random.NextDouble() - } + GeneralResultFaultTreeIllustrationPointEntity = generalResultEntity } } }; @@ -233,6 +235,11 @@ // Assert Assert.IsTrue(calculation.HasOutput); Assert.IsTrue(calculation.Output.HasGeneralResult); + + WindDirection windDirection = calculation.Output.GeneralResult.GoverningWindDirection; + Assert.AreEqual(generalResultEntity.GoverningWindDirectionName, windDirection.Name); + Assert.AreEqual(generalResultEntity.GoverningWindDirectionAngle, windDirection.Angle, + windDirection.Angle.GetAccuracy()); } [Test]