Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/ClosingStructures/ClosingStructuresCalculationEntityReadExtensionsTest.cs =================================================================== diff -u -r4b095752c115dd672400da5a4acc1560e4c9ce2c -r4f89601cb9d77ff379727afd64f902a0aff74fa3 --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/ClosingStructures/ClosingStructuresCalculationEntityReadExtensionsTest.cs (.../ClosingStructuresCalculationEntityReadExtensionsTest.cs) (revision 4b095752c115dd672400da5a4acc1560e4c9ce2c) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/ClosingStructures/ClosingStructuresCalculationEntityReadExtensionsTest.cs (.../ClosingStructuresCalculationEntityReadExtensionsTest.cs) (revision 4f89601cb9d77ff379727afd64f902a0aff74fa3) @@ -37,7 +37,7 @@ public class ClosingStructuresCalculationEntityReadExtensionsTest { [Test] - public void Read_ReadConversionColletorNull_ThrowArugumentNullException() + public void Read_ReadConversionCollectorNull_ThrowArgumentNullException() { // Setup var entity = new ClosingStructuresCalculationEntity(); @@ -141,6 +141,7 @@ Assert.AreEqual(entity.LevelCrestStructureNotClosingMean, inputParameters.LevelCrestStructureNotClosing.Mean.Value); Assert.AreEqual(entity.LevelCrestStructureNotClosingStandardDeviation, inputParameters.LevelCrestStructureNotClosing.StandardDeviation.Value); Assert.AreEqual(entity.ProbabilityOpenStructureBeforeFlooding, inputParameters.ProbabilityOpenStructureBeforeFlooding); + Assert.IsFalse(calculation.HasOutput); } [Test] @@ -272,5 +273,26 @@ // Assert Assert.AreSame(profile, calculation.InputParameters.ForeshoreProfile); } + + [Test] + public void Read_ValidEntityWithOutputEntity_ReturnCalculationWithOutput() + { + // Setup + var entity = new ClosingStructuresCalculationEntity + { + ClosingStructuresOutputEntities = + { + new ClosingStructuresOutputEntity() + } + }; + + var collector = new ReadConversionCollector(); + + // Call + StructuresCalculation calculation = entity.Read(collector); + + // Assert + Assert.IsTrue(calculation.HasOutput); + } } } \ No newline at end of file