Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/PropertyClasses/GrassCoverErosionOutwardsWaveConditionsInputContextPropertiesTest.cs =================================================================== diff -u -raa56a5d7a6ec9f083ce3bd7a65d0c5b06470fd3b -r63b0f1800d86c219732bf730d0137e7711b00b47 --- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/PropertyClasses/GrassCoverErosionOutwardsWaveConditionsInputContextPropertiesTest.cs (.../GrassCoverErosionOutwardsWaveConditionsInputContextPropertiesTest.cs) (revision aa56a5d7a6ec9f083ce3bd7a65d0c5b06470fd3b) +++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/PropertyClasses/GrassCoverErosionOutwardsWaveConditionsInputContextPropertiesTest.cs (.../GrassCoverErosionOutwardsWaveConditionsInputContextPropertiesTest.cs) (revision 63b0f1800d86c219732bf730d0137e7711b00b47) @@ -105,7 +105,7 @@ Assert.IsNull(properties.ForeshoreProfile); Assert.IsNull(properties.WorldReferencePoint); Assert.AreEqual(2, properties.Orientation.NumberOfDecimalPlaces); - Assert.AreEqual(0, properties.Orientation.Value); + Assert.IsNaN(properties.Orientation); Assert.IsInstanceOf(properties.BreakWater); Assert.IsInstanceOf(properties.ForeshoreGeometry); Assert.AreEqual("Gras", properties.RevetmentType); Index: Ringtoets/Revetment/src/Ringtoets.Revetment.Data/WaveConditionsInput.cs =================================================================== diff -u -raa56a5d7a6ec9f083ce3bd7a65d0c5b06470fd3b -r63b0f1800d86c219732bf730d0137e7711b00b47 --- Ringtoets/Revetment/src/Ringtoets.Revetment.Data/WaveConditionsInput.cs (.../WaveConditionsInput.cs) (revision aa56a5d7a6ec9f083ce3bd7a65d0c5b06470fd3b) +++ Ringtoets/Revetment/src/Ringtoets.Revetment.Data/WaveConditionsInput.cs (.../WaveConditionsInput.cs) (revision 63b0f1800d86c219732bf730d0137e7711b00b47) @@ -111,7 +111,7 @@ { if (double.IsNaN(value)) { - orientation = new RoundedDouble(2, double.NaN); + orientation = value.ToPrecision(orientation.NumberOfDecimalPlaces); return; } @@ -125,34 +125,6 @@ } /// - /// Gets or sets whether needs to be taken into account. - /// - public bool UseBreakWater { get; set; } - - /// - /// Gets the . - /// - public BreakWater BreakWater { get; private set; } - - /// - /// Gets or sets whether the needs to be taken into account. - /// - public bool UseForeshore { get; set; } - - /// - /// Gets the geometry of the foreshore. - /// - public RoundedPoint2DCollection ForeshoreGeometry - { - get - { - return foreshoreProfile != null - ? foreshoreProfile.Geometry - : new RoundedPoint2DCollection(2, Enumerable.Empty()); - } - } - - /// /// Gets the upper boundary based on . /// public RoundedDouble UpperBoundaryDesignWaterLevel @@ -284,6 +256,34 @@ } } + /// + /// Gets or sets whether needs to be taken into account. + /// + public bool UseBreakWater { get; set; } + + /// + /// Gets the . + /// + public BreakWater BreakWater { get; private set; } + + /// + /// Gets or sets whether the needs to be taken into account. + /// + public bool UseForeshore { get; set; } + + /// + /// Gets the geometry of the foreshore. + /// + public RoundedPoint2DCollection ForeshoreGeometry + { + get + { + return foreshoreProfile != null + ? foreshoreProfile.Geometry + : new RoundedPoint2DCollection(2, Enumerable.Empty()); + } + } + private static RoundedDouble ValidateUpperBoundaryInRange(RoundedDouble boundary) { if (boundary > 1000) @@ -364,7 +364,7 @@ { if (foreshoreProfile == null) { - Orientation = (RoundedDouble) 0.0; + Orientation = (RoundedDouble) double.NaN; UseForeshore = false; UseBreakWater = false; BreakWater = GetDefaultBreakWater(); Index: Ringtoets/Revetment/test/Ringtoets.Revetment.Data.Test/WaveConditionsInputTest.cs =================================================================== diff -u -raa56a5d7a6ec9f083ce3bd7a65d0c5b06470fd3b -r63b0f1800d86c219732bf730d0137e7711b00b47 --- Ringtoets/Revetment/test/Ringtoets.Revetment.Data.Test/WaveConditionsInputTest.cs (.../WaveConditionsInputTest.cs) (revision aa56a5d7a6ec9f083ce3bd7a65d0c5b06470fd3b) +++ Ringtoets/Revetment/test/Ringtoets.Revetment.Data.Test/WaveConditionsInputTest.cs (.../WaveConditionsInputTest.cs) (revision 63b0f1800d86c219732bf730d0137e7711b00b47) @@ -116,7 +116,7 @@ Assert.AreEqual(new RoundedDouble(2), input.BreakWater.Height); Assert.IsFalse(input.UseForeshore); CollectionAssert.IsEmpty(input.ForeshoreGeometry); - Assert.AreEqual(0, input.Orientation.Value); + Assert.IsNaN(input.Orientation); Assert.AreEqual(2, input.Orientation.NumberOfDecimalPlaces); Assert.IsNaN(input.AssessmentLevel.Value); Assert.AreEqual(2, input.AssessmentLevel.NumberOfDecimalPlaces); @@ -273,7 +273,7 @@ Assert.IsFalse(input.UseForeshore); CollectionAssert.IsEmpty(input.ForeshoreGeometry); Assert.AreEqual(originalHydraulicBoundaryLocation, input.HydraulicBoundaryLocation); - Assert.AreEqual(0, input.Orientation.Value); + Assert.IsNaN(input.Orientation); Assert.AreEqual(2, input.Orientation.NumberOfDecimalPlaces); } Index: Ringtoets/Revetment/test/Ringtoets.Revetment.Forms.Test/PropertyClasses/WaveConditionsInputContextPropertiesTest.cs =================================================================== diff -u -raa56a5d7a6ec9f083ce3bd7a65d0c5b06470fd3b -r63b0f1800d86c219732bf730d0137e7711b00b47 --- Ringtoets/Revetment/test/Ringtoets.Revetment.Forms.Test/PropertyClasses/WaveConditionsInputContextPropertiesTest.cs (.../WaveConditionsInputContextPropertiesTest.cs) (revision aa56a5d7a6ec9f083ce3bd7a65d0c5b06470fd3b) +++ Ringtoets/Revetment/test/Ringtoets.Revetment.Forms.Test/PropertyClasses/WaveConditionsInputContextPropertiesTest.cs (.../WaveConditionsInputContextPropertiesTest.cs) (revision 63b0f1800d86c219732bf730d0137e7711b00b47) @@ -104,7 +104,7 @@ Assert.IsNull(properties.ForeshoreProfile); Assert.IsNull(properties.WorldReferencePoint); Assert.AreEqual(2, properties.Orientation.NumberOfDecimalPlaces); - Assert.AreEqual(0, properties.Orientation.Value); + Assert.IsNaN(properties.Orientation); Assert.IsInstanceOf(properties.BreakWater); Assert.IsInstanceOf(properties.ForeshoreGeometry); Assert.AreEqual("Test", properties.RevetmentType); Index: Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Forms.Test/PropertyClasses/StabilityStoneCoverWaveConditionsInputContextPropertiesTest.cs =================================================================== diff -u -raa56a5d7a6ec9f083ce3bd7a65d0c5b06470fd3b -r63b0f1800d86c219732bf730d0137e7711b00b47 --- Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Forms.Test/PropertyClasses/StabilityStoneCoverWaveConditionsInputContextPropertiesTest.cs (.../StabilityStoneCoverWaveConditionsInputContextPropertiesTest.cs) (revision aa56a5d7a6ec9f083ce3bd7a65d0c5b06470fd3b) +++ Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Forms.Test/PropertyClasses/StabilityStoneCoverWaveConditionsInputContextPropertiesTest.cs (.../StabilityStoneCoverWaveConditionsInputContextPropertiesTest.cs) (revision 63b0f1800d86c219732bf730d0137e7711b00b47) @@ -112,7 +112,7 @@ Assert.IsNull(properties.ForeshoreProfile); Assert.IsNull(properties.WorldReferencePoint); Assert.AreEqual(2, properties.Orientation.NumberOfDecimalPlaces); - Assert.AreEqual(0, properties.Orientation.Value); + Assert.IsNaN(properties.Orientation); Assert.IsInstanceOf(properties.BreakWater); Assert.IsInstanceOf(properties.ForeshoreGeometry); Assert.AreEqual("Steen (blokken en zuilen)", properties.RevetmentType); Index: Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/PropertyClasses/StabilityStoneCoverWaveConditionsInputContextPropertiesTest.cs =================================================================== diff -u -raa56a5d7a6ec9f083ce3bd7a65d0c5b06470fd3b -r63b0f1800d86c219732bf730d0137e7711b00b47 --- Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/PropertyClasses/StabilityStoneCoverWaveConditionsInputContextPropertiesTest.cs (.../StabilityStoneCoverWaveConditionsInputContextPropertiesTest.cs) (revision aa56a5d7a6ec9f083ce3bd7a65d0c5b06470fd3b) +++ Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/PropertyClasses/StabilityStoneCoverWaveConditionsInputContextPropertiesTest.cs (.../StabilityStoneCoverWaveConditionsInputContextPropertiesTest.cs) (revision 63b0f1800d86c219732bf730d0137e7711b00b47) @@ -112,7 +112,7 @@ Assert.IsNull(properties.ForeshoreProfile); Assert.IsNull(properties.WorldReferencePoint); Assert.AreEqual(2, properties.Orientation.NumberOfDecimalPlaces); - Assert.AreEqual(0, properties.Orientation.Value); + Assert.IsNaN(properties.Orientation); Assert.IsInstanceOf(properties.BreakWater); Assert.IsInstanceOf(properties.ForeshoreGeometry); Assert.AreEqual("Asfalt", properties.RevetmentType);