Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/HeightStructures/HeightStructuresCalculationEntityReadExtensionsTest.cs =================================================================== diff -u -r8a11d2a7974d1fb39e142516dc3fd041e1eb4603 -rfc8042d95d25d97f3e8a85fdd557771f718229f8 --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/HeightStructures/HeightStructuresCalculationEntityReadExtensionsTest.cs (.../HeightStructuresCalculationEntityReadExtensionsTest.cs) (revision 8a11d2a7974d1fb39e142516dc3fd041e1eb4603) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/HeightStructures/HeightStructuresCalculationEntityReadExtensionsTest.cs (.../HeightStructuresCalculationEntityReadExtensionsTest.cs) (revision fc8042d95d25d97f3e8a85fdd557771f718229f8) @@ -163,6 +163,27 @@ Assert.IsNotNull(input.ForeshoreProfile); } + [Test] + public void Read_ValidEntityWithOutputEntity_ReturnCalculationWithOutput() + { + // Setup + var entity = new HeightStructuresCalculationEntity + { + HeightStructuresOutputEntities = + { + new HeightStructuresOutputEntity() + } + }; + + var collector = new ReadConversionCollector(); + + // Call + StructuresCalculation calculation = entity.Read(collector); + + // Assert + Assert.IsTrue(calculation.HasOutput); + } + private static void AssertRoundedDouble(double? entityValue, RoundedDouble roundedDouble) { Assert.AreEqual((RoundedDouble) entityValue.ToNullAsNaN(), roundedDouble, roundedDouble.GetAccuracy());