Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/CloneAssert.cs =================================================================== diff -u -r0f827ea0e06ceae9e35fa54e42abed8796111539 -r3126832223e21f55afdd473dc3c7bfac8b42fb66 --- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/CloneAssert.cs (.../CloneAssert.cs) (revision 0f827ea0e06ceae9e35fa54e42abed8796111539) +++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/CloneAssert.cs (.../CloneAssert.cs) (revision 3126832223e21f55afdd473dc3c7bfac8b42fb66) @@ -268,6 +268,7 @@ /// Method that asserts whether and /// are clones. /// + /// The type of the structure contained by the structures input. /// The original object. /// The cloned object. /// Thrown when and @@ -305,5 +306,25 @@ CoreCloneAssert.AreObjectClones(original.ProbabilityAssessmentOutput, clone.ProbabilityAssessmentOutput, AreClones); CoreCloneAssert.AreObjectClones(original.GeneralResult, clone.GeneralResult, AreClones); } + + /// + /// Method that asserts whether and + /// are clones. + /// + /// The type of structures input. + /// The type of the structure contained by the structures input. + /// The original object. + /// The cloned object. + /// Thrown when and + /// are not clones. + public static void AreClones(StructuresCalculation original, StructuresCalculation clone) + where TInput : StructuresInputBase, new() + where TStructure : StructureBase, new() + { + Assert.AreEqual(original.Name, clone.Name); + CoreCloneAssert.AreObjectClones(original.Comments, clone.Comments, AreClones); + CoreCloneAssert.AreObjectClones(original.InputParameters, clone.InputParameters, AreClones); + CoreCloneAssert.AreObjectClones(original.Output, clone.Output, AreClones); + } } } \ No newline at end of file