Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/TestCalculationWithForeshoreProfileTest.cs =================================================================== diff -u -r07f3d67fe9512b3c8303ff09398b0a234900d546 -r9632e7934b9a71e457853487fd204630fbc71cb6 --- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/TestCalculationWithForeshoreProfileTest.cs (.../TestCalculationWithForeshoreProfileTest.cs) (revision 07f3d67fe9512b3c8303ff09398b0a234900d546) +++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/TestCalculationWithForeshoreProfileTest.cs (.../TestCalculationWithForeshoreProfileTest.cs) (revision 9632e7934b9a71e457853487fd204630fbc71cb6) @@ -38,6 +38,7 @@ // Assert Assert.IsInstanceOf(calculation); Assert.IsInstanceOf(calculation); + Assert.IsTrue(calculation.ShouldCalculate); Assert.IsFalse(calculation.HasOutput); Assert.IsNull(calculation.Comments); @@ -68,6 +69,7 @@ // Assert Assert.IsInstanceOf(calculation); Assert.IsInstanceOf(calculation); + Assert.IsFalse(calculation.ShouldCalculate); Assert.IsTrue(calculation.HasOutput); Assert.IsNull(calculation.Comments); @@ -106,6 +108,7 @@ // Assert Assert.IsInstanceOf(calculation); Assert.IsInstanceOf(calculation); + Assert.IsTrue(calculation.ShouldCalculate); Assert.IsFalse(calculation.HasOutput); Assert.IsNull(calculation.Comments); @@ -136,6 +139,7 @@ calculation.ClearOutput(); // Assert + Assert.IsTrue(calculation.ShouldCalculate); Assert.IsFalse(calculation.HasOutput); } @@ -152,6 +156,7 @@ // Assert Assert.DoesNotThrow(test); + Assert.IsTrue(calculation.ShouldCalculate); Assert.IsFalse(calculation.HasOutput); } } Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/TestCalculationWithForeshoreProfile.cs =================================================================== diff -u -r1c474d80a340cff18ba177241f856edf5f13e434 -r9632e7934b9a71e457853487fd204630fbc71cb6 --- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/TestCalculationWithForeshoreProfile.cs (.../TestCalculationWithForeshoreProfile.cs) (revision 1c474d80a340cff18ba177241f856edf5f13e434) +++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/TestCalculationWithForeshoreProfile.cs (.../TestCalculationWithForeshoreProfile.cs) (revision 9632e7934b9a71e457853487fd204630fbc71cb6) @@ -43,6 +43,14 @@ public string Name { get; set; } + public bool ShouldCalculate + { + get + { + return !HasOutput; + } + } + public bool HasOutput { get; private set; } public Comment Comments { get; }