Index: Ringtoets/Common/test/Ringtoets.Common.Data.Test/Structures/StructuresInputBaseTest.cs =================================================================== diff -u -rfaa685cb8293f1cc01d24fedb75fa260ecc58817 -r898d42ca6354285169751f4de231f96f40b1f6f9 --- Ringtoets/Common/test/Ringtoets.Common.Data.Test/Structures/StructuresInputBaseTest.cs (.../StructuresInputBaseTest.cs) (revision faa685cb8293f1cc01d24fedb75fa260ecc58817) +++ Ringtoets/Common/test/Ringtoets.Common.Data.Test/Structures/StructuresInputBaseTest.cs (.../StructuresInputBaseTest.cs) (revision 898d42ca6354285169751f4de231f96f40b1f6f9) @@ -285,57 +285,13 @@ public void Clone_Always_ReturnNewInstanceWithCopiedValues() { // Setup - var random = new Random(21); var original = new SimpleStructuresInput { - ModelFactorSuperCriticalFlow = new NormalDistribution - { - Mean = random.NextRoundedDouble() - }, - AllowedLevelIncreaseStorage = new LogNormalDistribution - { - Mean = random.NextRoundedDouble(), - StandardDeviation = random.NextRoundedDouble() - }, - StorageStructureArea = new VariationCoefficientLogNormalDistribution - { - Mean = random.NextRoundedDouble(), - CoefficientOfVariation = random.NextRoundedDouble() - }, - FlowWidthAtBottomProtection = new LogNormalDistribution - { - Mean = random.NextRoundedDouble(), - StandardDeviation = random.NextRoundedDouble() - }, - CriticalOvertoppingDischarge = new VariationCoefficientLogNormalDistribution - { - Mean = random.NextRoundedDouble(), - CoefficientOfVariation = random.NextRoundedDouble() - }, - WidthFlowApertures = new NormalDistribution - { - Mean = random.NextRoundedDouble(), - StandardDeviation = random.NextRoundedDouble() - }, - StormDuration = new VariationCoefficientLogNormalDistribution - { - Mean = random.NextRoundedDouble() - }, - Structure = new TestStructure(), - StructureNormalOrientation = random.NextRoundedDouble(), - FailureProbabilityStructureWithErosion = random.NextDouble(), - ForeshoreProfile = new TestForeshoreProfile(), - ShouldIllustrationPointsBeCalculated = random.NextBoolean(), - HydraulicBoundaryLocation = new TestHydraulicBoundaryLocation(), - UseBreakWater = random.NextBoolean(), - BreakWater = - { - Type = random.NextEnumValue(), - Height = random.NextRoundedDouble() - }, - UseForeshore = random.NextBoolean() + Structure = new TestStructure() }; + CloneTestHelper.SetRandomDataToStructuresInput(original); + // Call object clone = original.Clone();