Index: Ringtoets/Common/test/Ringtoets.Common.IO.Test/Configurations/Helpers/ConfigurationValidationExtensionsTest.cs =================================================================== diff -u -r5f489223b4d730eec42acd55533dd012d10dd1ca -r1127011aaf7ba5f521e709a7ab54d212e1a18fe3 --- Ringtoets/Common/test/Ringtoets.Common.IO.Test/Configurations/Helpers/ConfigurationValidationExtensionsTest.cs (.../ConfigurationValidationExtensionsTest.cs) (revision 5f489223b4d730eec42acd55533dd012d10dd1ca) +++ Ringtoets/Common/test/Ringtoets.Common.IO.Test/Configurations/Helpers/ConfigurationValidationExtensionsTest.cs (.../ConfigurationValidationExtensionsTest.cs) (revision 1127011aaf7ba5f521e709a7ab54d212e1a18fe3) @@ -20,6 +20,7 @@ // All rights reserved. using System; +using System.Linq; using Core.Common.Base.Geometry; using Core.Common.TestUtil; using log4net; @@ -132,7 +133,6 @@ waveReductionConfiguration.UseForeshoreProfile = random.NextBoolean(); break; } - ; // Call bool valid = waveReductionConfiguration.ValidateWaveReduction(null, calculationName, log); @@ -143,6 +143,27 @@ } [Test] + public void ValidateWaveReduction_ForeshoreProfileWithoutGeometryNoWaveReduction_ReturnsTrue() + { + // Setup + const string calculationName = "calculation"; + + var mocks = new MockRepository(); + var log = mocks.StrictMock(); + mocks.ReplayAll(); + + // Call + bool valid = ((WaveReductionConfiguration) null).ValidateWaveReduction( + new TestForeshoreProfile("voorland", Enumerable.Empty()), + calculationName, + log); + + // Assert + Assert.IsTrue(valid); + mocks.VerifyAll(); + } + + [Test] public void ValidateWaveReduction_ForeshoreProfileWithGeometryForeshoreProfileUsed_ReturnsTrue() { // Setup