Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Data.TestUtil/CloneAssert.cs
===================================================================
diff -u -rb286d241c3bfefe14166cc01382e806c98b54b5a -r268c1647f0094f6c43aeceaa5793437562cffe5a
--- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Data.TestUtil/CloneAssert.cs (.../CloneAssert.cs) (revision b286d241c3bfefe14166cc01382e806c98b54b5a)
+++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Data.TestUtil/CloneAssert.cs (.../CloneAssert.cs) (revision 268c1647f0094f6c43aeceaa5793437562cffe5a)
@@ -22,7 +22,6 @@
using Core.Common.Data.TestUtil;
using NUnit.Framework;
using Ringtoets.Common.Data.TestUtil;
-using CommonCloneAssert = Ringtoets.Common.Data.TestUtil.CloneAssert;
namespace Ringtoets.ClosingStructures.Data.TestUtil
{
Index: Ringtoets/Common/test/Ringtoets.Common.Data.Test/CommentTest.cs
===================================================================
diff -u -rb286d241c3bfefe14166cc01382e806c98b54b5a -r268c1647f0094f6c43aeceaa5793437562cffe5a
--- Ringtoets/Common/test/Ringtoets.Common.Data.Test/CommentTest.cs (.../CommentTest.cs) (revision b286d241c3bfefe14166cc01382e806c98b54b5a)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.Test/CommentTest.cs (.../CommentTest.cs) (revision 268c1647f0094f6c43aeceaa5793437562cffe5a)
@@ -22,7 +22,7 @@
using System;
using Core.Common.Data.TestUtil;
using NUnit.Framework;
-using CommonCloneAssert = Ringtoets.Common.Data.TestUtil.CloneAssert;
+using Ringtoets.Common.Data.TestUtil;
namespace Ringtoets.Common.Data.Test
{
Index: Ringtoets/Common/test/Ringtoets.Common.Data.Test/DikeProfiles/BreakWaterTest.cs
===================================================================
diff -u -rb286d241c3bfefe14166cc01382e806c98b54b5a -r268c1647f0094f6c43aeceaa5793437562cffe5a
--- Ringtoets/Common/test/Ringtoets.Common.Data.Test/DikeProfiles/BreakWaterTest.cs (.../BreakWaterTest.cs) (revision b286d241c3bfefe14166cc01382e806c98b54b5a)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.Test/DikeProfiles/BreakWaterTest.cs (.../BreakWaterTest.cs) (revision 268c1647f0094f6c43aeceaa5793437562cffe5a)
@@ -25,7 +25,7 @@
using Core.Common.TestUtil;
using NUnit.Framework;
using Ringtoets.Common.Data.DikeProfiles;
-using CommonCloneAssert = Ringtoets.Common.Data.TestUtil.CloneAssert;
+using Ringtoets.Common.Data.TestUtil;
namespace Ringtoets.Common.Data.Test.DikeProfiles
{
Index: Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/FaultTreeIllustrationPointTest.cs
===================================================================
diff -u -rb286d241c3bfefe14166cc01382e806c98b54b5a -r268c1647f0094f6c43aeceaa5793437562cffe5a
--- Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/FaultTreeIllustrationPointTest.cs (.../FaultTreeIllustrationPointTest.cs) (revision b286d241c3bfefe14166cc01382e806c98b54b5a)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/FaultTreeIllustrationPointTest.cs (.../FaultTreeIllustrationPointTest.cs) (revision 268c1647f0094f6c43aeceaa5793437562cffe5a)
@@ -27,7 +27,6 @@
using NUnit.Framework;
using Ringtoets.Common.Data.IllustrationPoints;
using Ringtoets.Common.Data.TestUtil;
-using CommonCloneAssert = Ringtoets.Common.Data.TestUtil.CloneAssert;
namespace Ringtoets.Common.Data.Test.IllustrationPoints
{
Index: Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/GeneralResultTest.cs
===================================================================
diff -u -rb286d241c3bfefe14166cc01382e806c98b54b5a -r268c1647f0094f6c43aeceaa5793437562cffe5a
--- Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/GeneralResultTest.cs (.../GeneralResultTest.cs) (revision b286d241c3bfefe14166cc01382e806c98b54b5a)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/GeneralResultTest.cs (.../GeneralResultTest.cs) (revision 268c1647f0094f6c43aeceaa5793437562cffe5a)
@@ -25,8 +25,8 @@
using Core.Common.Data.TestUtil;
using NUnit.Framework;
using Ringtoets.Common.Data.IllustrationPoints;
+using Ringtoets.Common.Data.TestUtil;
using Ringtoets.Common.Data.TestUtil.IllustrationPoints;
-using CommonCloneAssert = Ringtoets.Common.Data.TestUtil.CloneAssert;
namespace Ringtoets.Common.Data.Test.IllustrationPoints
{
Index: Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/IllustrationPointBaseTest.cs
===================================================================
diff -u -rb286d241c3bfefe14166cc01382e806c98b54b5a -r268c1647f0094f6c43aeceaa5793437562cffe5a
--- Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/IllustrationPointBaseTest.cs (.../IllustrationPointBaseTest.cs) (revision b286d241c3bfefe14166cc01382e806c98b54b5a)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/IllustrationPointBaseTest.cs (.../IllustrationPointBaseTest.cs) (revision 268c1647f0094f6c43aeceaa5793437562cffe5a)
@@ -24,7 +24,6 @@
using NUnit.Framework;
using Ringtoets.Common.Data.IllustrationPoints;
using Ringtoets.Common.Data.TestUtil;
-using CommonCloneAssert = Ringtoets.Common.Data.TestUtil.CloneAssert;
namespace Ringtoets.Common.Data.Test.IllustrationPoints
{
Index: Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/IllustrationPointNodeTest.cs
===================================================================
diff -u -rb286d241c3bfefe14166cc01382e806c98b54b5a -r268c1647f0094f6c43aeceaa5793437562cffe5a
--- Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/IllustrationPointNodeTest.cs (.../IllustrationPointNodeTest.cs) (revision b286d241c3bfefe14166cc01382e806c98b54b5a)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/IllustrationPointNodeTest.cs (.../IllustrationPointNodeTest.cs) (revision 268c1647f0094f6c43aeceaa5793437562cffe5a)
@@ -26,8 +26,8 @@
using Core.Common.TestUtil;
using NUnit.Framework;
using Ringtoets.Common.Data.IllustrationPoints;
+using Ringtoets.Common.Data.TestUtil;
using Ringtoets.Common.Data.TestUtil.IllustrationPoints;
-using CommonCloneAssert = Ringtoets.Common.Data.TestUtil.CloneAssert;
namespace Ringtoets.Common.Data.Test.IllustrationPoints
{
Index: Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/IllustrationPointResultTest.cs
===================================================================
diff -u -rb286d241c3bfefe14166cc01382e806c98b54b5a -r268c1647f0094f6c43aeceaa5793437562cffe5a
--- Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/IllustrationPointResultTest.cs (.../IllustrationPointResultTest.cs) (revision b286d241c3bfefe14166cc01382e806c98b54b5a)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/IllustrationPointResultTest.cs (.../IllustrationPointResultTest.cs) (revision 268c1647f0094f6c43aeceaa5793437562cffe5a)
@@ -24,7 +24,6 @@
using NUnit.Framework;
using Ringtoets.Common.Data.IllustrationPoints;
using Ringtoets.Common.Data.TestUtil;
-using CommonCloneAssert = Ringtoets.Common.Data.TestUtil.CloneAssert;
namespace Ringtoets.Common.Data.Test.IllustrationPoints
{
Index: Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/StochastTest.cs
===================================================================
diff -u -rb286d241c3bfefe14166cc01382e806c98b54b5a -r268c1647f0094f6c43aeceaa5793437562cffe5a
--- Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/StochastTest.cs (.../StochastTest.cs) (revision b286d241c3bfefe14166cc01382e806c98b54b5a)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/StochastTest.cs (.../StochastTest.cs) (revision 268c1647f0094f6c43aeceaa5793437562cffe5a)
@@ -24,7 +24,6 @@
using NUnit.Framework;
using Ringtoets.Common.Data.IllustrationPoints;
using Ringtoets.Common.Data.TestUtil;
-using CommonCloneAssert = Ringtoets.Common.Data.TestUtil.CloneAssert;
namespace Ringtoets.Common.Data.Test.IllustrationPoints
{
Index: Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/SubMechanismIllustrationPointStochastTest.cs
===================================================================
diff -u -rb286d241c3bfefe14166cc01382e806c98b54b5a -r268c1647f0094f6c43aeceaa5793437562cffe5a
--- Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/SubMechanismIllustrationPointStochastTest.cs (.../SubMechanismIllustrationPointStochastTest.cs) (revision b286d241c3bfefe14166cc01382e806c98b54b5a)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/SubMechanismIllustrationPointStochastTest.cs (.../SubMechanismIllustrationPointStochastTest.cs) (revision 268c1647f0094f6c43aeceaa5793437562cffe5a)
@@ -24,7 +24,6 @@
using NUnit.Framework;
using Ringtoets.Common.Data.IllustrationPoints;
using Ringtoets.Common.Data.TestUtil;
-using CommonCloneAssert = Ringtoets.Common.Data.TestUtil.CloneAssert;
namespace Ringtoets.Common.Data.Test.IllustrationPoints
{
Index: Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/SubMechanismIllustrationPointTest.cs
===================================================================
diff -u -rb286d241c3bfefe14166cc01382e806c98b54b5a -r268c1647f0094f6c43aeceaa5793437562cffe5a
--- Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/SubMechanismIllustrationPointTest.cs (.../SubMechanismIllustrationPointTest.cs) (revision b286d241c3bfefe14166cc01382e806c98b54b5a)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/SubMechanismIllustrationPointTest.cs (.../SubMechanismIllustrationPointTest.cs) (revision 268c1647f0094f6c43aeceaa5793437562cffe5a)
@@ -26,7 +26,6 @@
using NUnit.Framework;
using Ringtoets.Common.Data.IllustrationPoints;
using Ringtoets.Common.Data.TestUtil;
-using CommonCloneAssert = Ringtoets.Common.Data.TestUtil.CloneAssert;
namespace Ringtoets.Common.Data.Test.IllustrationPoints
{
Index: Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/TopLevelFaultTreeIllustrationPointTest.cs
===================================================================
diff -u -rb286d241c3bfefe14166cc01382e806c98b54b5a -r268c1647f0094f6c43aeceaa5793437562cffe5a
--- Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/TopLevelFaultTreeIllustrationPointTest.cs (.../TopLevelFaultTreeIllustrationPointTest.cs) (revision b286d241c3bfefe14166cc01382e806c98b54b5a)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/TopLevelFaultTreeIllustrationPointTest.cs (.../TopLevelFaultTreeIllustrationPointTest.cs) (revision 268c1647f0094f6c43aeceaa5793437562cffe5a)
@@ -2,8 +2,8 @@
using Core.Common.Data.TestUtil;
using NUnit.Framework;
using Ringtoets.Common.Data.IllustrationPoints;
+using Ringtoets.Common.Data.TestUtil;
using Ringtoets.Common.Data.TestUtil.IllustrationPoints;
-using CommonCloneAssert = Ringtoets.Common.Data.TestUtil.CloneAssert;
namespace Ringtoets.Common.Data.Test.IllustrationPoints
{
Index: Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/TopLevelIllustrationPointBaseTest.cs
===================================================================
diff -u -rb286d241c3bfefe14166cc01382e806c98b54b5a -r268c1647f0094f6c43aeceaa5793437562cffe5a
--- Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/TopLevelIllustrationPointBaseTest.cs (.../TopLevelIllustrationPointBaseTest.cs) (revision b286d241c3bfefe14166cc01382e806c98b54b5a)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/TopLevelIllustrationPointBaseTest.cs (.../TopLevelIllustrationPointBaseTest.cs) (revision 268c1647f0094f6c43aeceaa5793437562cffe5a)
@@ -23,8 +23,8 @@
using Core.Common.Data.TestUtil;
using NUnit.Framework;
using Ringtoets.Common.Data.IllustrationPoints;
+using Ringtoets.Common.Data.TestUtil;
using Ringtoets.Common.Data.TestUtil.IllustrationPoints;
-using CommonCloneAssert = Ringtoets.Common.Data.TestUtil.CloneAssert;
namespace Ringtoets.Common.Data.Test.IllustrationPoints
{
Index: Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/TopLevelSubMechanismIllustrationPointTest.cs
===================================================================
diff -u -rb286d241c3bfefe14166cc01382e806c98b54b5a -r268c1647f0094f6c43aeceaa5793437562cffe5a
--- Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/TopLevelSubMechanismIllustrationPointTest.cs (.../TopLevelSubMechanismIllustrationPointTest.cs) (revision b286d241c3bfefe14166cc01382e806c98b54b5a)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/TopLevelSubMechanismIllustrationPointTest.cs (.../TopLevelSubMechanismIllustrationPointTest.cs) (revision 268c1647f0094f6c43aeceaa5793437562cffe5a)
@@ -23,8 +23,8 @@
using Core.Common.Data.TestUtil;
using NUnit.Framework;
using Ringtoets.Common.Data.IllustrationPoints;
+using Ringtoets.Common.Data.TestUtil;
using Ringtoets.Common.Data.TestUtil.IllustrationPoints;
-using CommonCloneAssert = Ringtoets.Common.Data.TestUtil.CloneAssert;
namespace Ringtoets.Common.Data.Test.IllustrationPoints
{
Index: Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/WindDirectionTest.cs
===================================================================
diff -u -rb286d241c3bfefe14166cc01382e806c98b54b5a -r268c1647f0094f6c43aeceaa5793437562cffe5a
--- Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/WindDirectionTest.cs (.../WindDirectionTest.cs) (revision b286d241c3bfefe14166cc01382e806c98b54b5a)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.Test/IllustrationPoints/WindDirectionTest.cs (.../WindDirectionTest.cs) (revision 268c1647f0094f6c43aeceaa5793437562cffe5a)
@@ -24,7 +24,6 @@
using NUnit.Framework;
using Ringtoets.Common.Data.IllustrationPoints;
using Ringtoets.Common.Data.TestUtil;
-using CommonCloneAssert = Ringtoets.Common.Data.TestUtil.CloneAssert;
namespace Ringtoets.Common.Data.Test.IllustrationPoints
{
Index: Ringtoets/Common/test/Ringtoets.Common.Data.Test/Probability/ProbabilityAssessmentOutputTest.cs
===================================================================
diff -u -rb286d241c3bfefe14166cc01382e806c98b54b5a -r268c1647f0094f6c43aeceaa5793437562cffe5a
--- Ringtoets/Common/test/Ringtoets.Common.Data.Test/Probability/ProbabilityAssessmentOutputTest.cs (.../ProbabilityAssessmentOutputTest.cs) (revision b286d241c3bfefe14166cc01382e806c98b54b5a)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.Test/Probability/ProbabilityAssessmentOutputTest.cs (.../ProbabilityAssessmentOutputTest.cs) (revision 268c1647f0094f6c43aeceaa5793437562cffe5a)
@@ -27,7 +27,6 @@
using Ringtoets.Common.Data.Calculation;
using Ringtoets.Common.Data.Probability;
using Ringtoets.Common.Data.TestUtil;
-using CommonCloneAssert = Ringtoets.Common.Data.TestUtil.CloneAssert;
namespace Ringtoets.Common.Data.Test.Probability
{
Index: Ringtoets/Common/test/Ringtoets.Common.Data.Test/Structures/StructuresCalculationTest.cs
===================================================================
diff -u -rb286d241c3bfefe14166cc01382e806c98b54b5a -r268c1647f0094f6c43aeceaa5793437562cffe5a
--- Ringtoets/Common/test/Ringtoets.Common.Data.Test/Structures/StructuresCalculationTest.cs (.../StructuresCalculationTest.cs) (revision b286d241c3bfefe14166cc01382e806c98b54b5a)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.Test/Structures/StructuresCalculationTest.cs (.../StructuresCalculationTest.cs) (revision 268c1647f0094f6c43aeceaa5793437562cffe5a)
@@ -25,7 +25,6 @@
using Ringtoets.Common.Data.Calculation;
using Ringtoets.Common.Data.Structures;
using Ringtoets.Common.Data.TestUtil;
-using CommonCloneAssert = Ringtoets.Common.Data.TestUtil.CloneAssert;
namespace Ringtoets.Common.Data.Test.Structures
{
Index: Ringtoets/Common/test/Ringtoets.Common.Data.Test/Structures/StructuresInputBaseTest.cs
===================================================================
diff -u -rb286d241c3bfefe14166cc01382e806c98b54b5a -r268c1647f0094f6c43aeceaa5793437562cffe5a
--- Ringtoets/Common/test/Ringtoets.Common.Data.Test/Structures/StructuresInputBaseTest.cs (.../StructuresInputBaseTest.cs) (revision b286d241c3bfefe14166cc01382e806c98b54b5a)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.Test/Structures/StructuresInputBaseTest.cs (.../StructuresInputBaseTest.cs) (revision 268c1647f0094f6c43aeceaa5793437562cffe5a)
@@ -33,7 +33,6 @@
using Ringtoets.Common.Data.Probabilistics;
using Ringtoets.Common.Data.Structures;
using Ringtoets.Common.Data.TestUtil;
-using CommonCloneAssert = Ringtoets.Common.Data.TestUtil.CloneAssert;
namespace Ringtoets.Common.Data.Test.Structures
{
Index: Ringtoets/Common/test/Ringtoets.Common.Data.Test/Structures/StructuresOutputTest.cs
===================================================================
diff -u -rb286d241c3bfefe14166cc01382e806c98b54b5a -r268c1647f0094f6c43aeceaa5793437562cffe5a
--- Ringtoets/Common/test/Ringtoets.Common.Data.Test/Structures/StructuresOutputTest.cs (.../StructuresOutputTest.cs) (revision b286d241c3bfefe14166cc01382e806c98b54b5a)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.Test/Structures/StructuresOutputTest.cs (.../StructuresOutputTest.cs) (revision 268c1647f0094f6c43aeceaa5793437562cffe5a)
@@ -26,7 +26,6 @@
using Ringtoets.Common.Data.Structures;
using Ringtoets.Common.Data.TestUtil;
using Ringtoets.Common.Data.TestUtil.IllustrationPoints;
-using CommonCloneAssert = Ringtoets.Common.Data.TestUtil.CloneAssert;
namespace Ringtoets.Common.Data.Test.Structures
{
Fisheye: Tag 268c1647f0094f6c43aeceaa5793437562cffe5a refers to a dead (removed) revision in file `Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/CloneAssert.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/CommonCloneAssert.cs
===================================================================
diff -u
--- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/CommonCloneAssert.cs (revision 0)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/CommonCloneAssert.cs (revision 268c1647f0094f6c43aeceaa5793437562cffe5a)
@@ -0,0 +1,330 @@
+// Copyright (C) Stichting Deltares 2017. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using Core.Common.Data.TestUtil;
+using NUnit.Framework;
+using Ringtoets.Common.Data.DikeProfiles;
+using Ringtoets.Common.Data.IllustrationPoints;
+using Ringtoets.Common.Data.Probability;
+using Ringtoets.Common.Data.Structures;
+
+namespace Ringtoets.Common.Data.TestUtil
+{
+ ///
+ /// Class that defines methods for asserting whether two objects are clones.
+ ///
+ public static class CommonCloneAssert
+ {
+ ///
+ /// Method that asserts whether and
+ /// are clones.
+ ///
+ /// The original object.
+ /// The cloned object.
+ /// Thrown when and
+ /// are not clones.
+ public static void AreClones(BreakWater original, BreakWater clone)
+ {
+ Assert.AreEqual(original.Type, clone.Type);
+ Assert.AreEqual(original.Height, clone.Height);
+ }
+
+ ///
+ /// Method that asserts whether and
+ /// are clones.
+ ///
+ /// The original object.
+ /// The cloned object.
+ /// Thrown when and
+ /// are not clones.
+ public static void AreClones(ProbabilityAssessmentOutput original, ProbabilityAssessmentOutput clone)
+ {
+ Assert.AreEqual(original.RequiredProbability, clone.RequiredProbability);
+ Assert.AreEqual(original.RequiredReliability, clone.RequiredReliability);
+ Assert.AreEqual(original.Probability, clone.Probability);
+ Assert.AreEqual(original.Reliability, clone.Reliability);
+ Assert.AreEqual(original.FactorOfSafety, clone.FactorOfSafety);
+ }
+
+ ///
+ /// Method that asserts whether and
+ /// are clones.
+ ///
+ /// The original object.
+ /// The cloned object.
+ /// Thrown when and
+ /// are not clones.
+ public static void AreClones(Comment original, Comment clone)
+ {
+ Assert.AreEqual(original.Body, clone.Body);
+ }
+
+ ///
+ /// Method that asserts whether and
+ /// are clones.
+ ///
+ /// The original object.
+ /// The cloned object.
+ /// Thrown when and
+ /// are not clones.
+ public static void AreClones(WindDirection original, WindDirection clone)
+ {
+ Assert.AreEqual(original.Name, clone.Name);
+ Assert.AreEqual(original.Angle, clone.Angle);
+ }
+
+ ///
+ /// Method that asserts whether and
+ /// are clones.
+ ///
+ /// The original object.
+ /// The cloned object.
+ /// Thrown when and
+ /// are not clones.
+ public static void AreClones(Stochast original, Stochast clone)
+ {
+ Assert.AreEqual(original.Name, clone.Name);
+ Assert.AreEqual(original.Alpha, clone.Alpha);
+ Assert.AreEqual(original.Duration, clone.Duration);
+ }
+
+ ///
+ /// Method that asserts whether and
+ /// are clones.
+ ///
+ /// The original object.
+ /// The cloned object.
+ /// Thrown when and
+ /// are not clones.
+ public static void AreClones(SubMechanismIllustrationPointStochast original, SubMechanismIllustrationPointStochast clone)
+ {
+ AreClones((Stochast) original, clone);
+ Assert.AreEqual(original.Realization, clone.Realization);
+ }
+
+ ///
+ /// Method that asserts whether and
+ /// are clones.
+ ///
+ /// The original object.
+ /// The cloned object.
+ /// Thrown when and
+ /// are not clones.
+ public static void AreClones(TopLevelIllustrationPointBase original, TopLevelIllustrationPointBase clone)
+ {
+ CoreCloneAssert.AreObjectClones(original.WindDirection, clone.WindDirection, AreClones);
+ Assert.AreEqual(original.ClosingSituation, clone.ClosingSituation);
+ }
+
+ ///
+ /// Method that asserts whether and
+ /// are clones.
+ ///
+ /// The original object.
+ /// The cloned object.
+ /// Thrown when and
+ /// are not clones.
+ public static void AreClones(TopLevelSubMechanismIllustrationPoint original, TopLevelSubMechanismIllustrationPoint clone)
+ {
+ AreClones((TopLevelIllustrationPointBase) original, clone);
+ CoreCloneAssert.AreObjectClones(original.SubMechanismIllustrationPoint, clone.SubMechanismIllustrationPoint, AreClones);
+ }
+
+ ///
+ /// Method that asserts whether and
+ /// are clones.
+ ///
+ /// The original object.
+ /// The cloned object.
+ /// Thrown when and
+ /// are not clones.
+ public static void AreClones(TopLevelFaultTreeIllustrationPoint original, TopLevelFaultTreeIllustrationPoint clone)
+ {
+ AreClones((TopLevelIllustrationPointBase) original, clone);
+ CoreCloneAssert.AreObjectClones(original.FaultTreeNodeRoot, clone.FaultTreeNodeRoot, AreClones);
+ }
+
+ ///
+ /// Method that asserts whether and
+ /// are clones.
+ ///
+ /// The original object.
+ /// The cloned object.
+ /// Thrown when and
+ /// are not clones.
+ public static void AreClones(IllustrationPointResult original, IllustrationPointResult clone)
+ {
+ Assert.AreEqual(original.Description, clone.Description);
+ Assert.AreEqual(original.Value, clone.Value);
+ }
+
+ ///
+ /// Method that asserts whether and
+ /// are clones.
+ ///
+ /// The original object.
+ /// The cloned object.
+ /// Thrown when and
+ /// are not clones.
+ public static void AreClones(IllustrationPointBase original, IllustrationPointBase clone)
+ {
+ Assert.AreEqual(original.Name, clone.Name);
+ Assert.AreEqual(original.Beta, clone.Beta);
+ }
+
+ ///
+ /// Method that asserts whether and
+ /// are clones.
+ ///
+ /// The original object.
+ /// The cloned object.
+ /// Thrown when and
+ /// are not clones.
+ public static void AreClones(SubMechanismIllustrationPoint original, SubMechanismIllustrationPoint clone)
+ {
+ AreClones((IllustrationPointBase) original, clone);
+ CoreCloneAssert.AreEnumerationClones(original.Stochasts, clone.Stochasts, AreClones);
+ CoreCloneAssert.AreEnumerationClones(original.IllustrationPointResults, clone.IllustrationPointResults, AreClones);
+ }
+
+ ///
+ /// Method that asserts whether and
+ /// are clones.
+ ///
+ /// The original object.
+ /// The cloned object.
+ /// Thrown when and
+ /// are not clones.
+ public static void AreClones(FaultTreeIllustrationPoint original, FaultTreeIllustrationPoint clone)
+ {
+ AreClones((IllustrationPointBase) original, clone);
+ CoreCloneAssert.AreEnumerationClones(original.Stochasts, clone.Stochasts, AreClones);
+ Assert.AreEqual(original.CombinationType, clone.CombinationType);
+ }
+
+ ///
+ /// Method that asserts whether and
+ /// are clones.
+ ///
+ /// The original object.
+ /// The cloned object.
+ /// Thrown when and
+ /// are not clones.
+ public static void AreClones(IllustrationPointNode original, IllustrationPointNode clone)
+ {
+ CoreCloneAssert.AreObjectClones(original.Data, clone.Data, AreClones);
+ CoreCloneAssert.AreEnumerationClones(original.Children, clone.Children, AreClones);
+ }
+
+ ///
+ /// Method that asserts whether and
+ /// are clones.
+ ///
+ /// The original object.
+ /// The cloned object.
+ /// Thrown when and
+ /// are not clones.
+ public static void AreClones(GeneralResult original, GeneralResult clone)
+ {
+ CoreCloneAssert.AreObjectClones(original.GoverningWindDirection, clone.GoverningWindDirection, AreClones);
+ CoreCloneAssert.AreEnumerationClones(original.Stochasts, clone.Stochasts, AreClones);
+ CoreCloneAssert.AreEnumerationClones(original.TopLevelIllustrationPoints, clone.TopLevelIllustrationPoints, AreClones);
+ }
+
+ ///
+ /// Method that asserts whether and
+ /// are clones.
+ ///
+ /// The original object.
+ /// The cloned object.
+ /// Thrown when and
+ /// are not clones.
+ public static void AreClones(GeneralResult original, GeneralResult clone)
+ {
+ CoreCloneAssert.AreObjectClones(original.GoverningWindDirection, clone.GoverningWindDirection, AreClones);
+ CoreCloneAssert.AreEnumerationClones(original.Stochasts, clone.Stochasts, AreClones);
+ CoreCloneAssert.AreEnumerationClones(original.TopLevelIllustrationPoints, clone.TopLevelIllustrationPoints, AreClones);
+ }
+
+ ///
+ /// 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
+ /// are not clones.
+ public static void AreClones(StructuresInputBase original, StructuresInputBase clone) where T : StructureBase
+ {
+ CoreCloneAssert.AreObjectClones(original.ModelFactorSuperCriticalFlow, clone.ModelFactorSuperCriticalFlow, DistributionAssert.AreEqual);
+ CoreCloneAssert.AreObjectClones(original.AllowedLevelIncreaseStorage, clone.AllowedLevelIncreaseStorage, DistributionAssert.AreEqual);
+ CoreCloneAssert.AreObjectClones(original.StorageStructureArea, clone.StorageStructureArea, DistributionAssert.AreEqual);
+ CoreCloneAssert.AreObjectClones(original.FlowWidthAtBottomProtection, clone.FlowWidthAtBottomProtection, DistributionAssert.AreEqual);
+ CoreCloneAssert.AreObjectClones(original.CriticalOvertoppingDischarge, clone.CriticalOvertoppingDischarge, DistributionAssert.AreEqual);
+ CoreCloneAssert.AreObjectClones(original.WidthFlowApertures, clone.WidthFlowApertures, DistributionAssert.AreEqual);
+ CoreCloneAssert.AreObjectClones(original.StormDuration, clone.StormDuration, DistributionAssert.AreEqual);
+ Assert.AreSame(original.Structure, clone.Structure);
+ Assert.AreEqual(original.StructureNormalOrientation, clone.StructureNormalOrientation);
+ Assert.AreEqual(original.FailureProbabilityStructureWithErosion, clone.FailureProbabilityStructureWithErosion);
+ Assert.AreSame(original.ForeshoreProfile, clone.ForeshoreProfile);
+ Assert.AreEqual(original.ShouldIllustrationPointsBeCalculated, clone.ShouldIllustrationPointsBeCalculated);
+ Assert.AreSame(original.HydraulicBoundaryLocation, clone.HydraulicBoundaryLocation);
+ Assert.AreEqual(original.UseBreakWater, clone.UseBreakWater);
+ CoreCloneAssert.AreObjectClones(original.BreakWater, clone.BreakWater, AreClones);
+ Assert.AreEqual(original.UseForeshore, clone.UseForeshore);
+ }
+
+ ///
+ /// Method that asserts whether and
+ /// are clones.
+ ///
+ /// The original object.
+ /// The cloned object.
+ /// Thrown when and
+ /// are not clones.
+ public static void AreClones(StructuresOutput original, StructuresOutput clone)
+ {
+ 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
Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/Ringtoets.Common.Data.TestUtil.csproj
===================================================================
diff -u -r7b7bd75dc1c1327386c9be96b5d480565bb8ecd6 -r268c1647f0094f6c43aeceaa5793437562cffe5a
--- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/Ringtoets.Common.Data.TestUtil.csproj (.../Ringtoets.Common.Data.TestUtil.csproj) (revision 7b7bd75dc1c1327386c9be96b5d480565bb8ecd6)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/Ringtoets.Common.Data.TestUtil.csproj (.../Ringtoets.Common.Data.TestUtil.csproj) (revision 268c1647f0094f6c43aeceaa5793437562cffe5a)
@@ -56,7 +56,7 @@
-
+
Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Data.TestUtil/CloneAssert.cs
===================================================================
diff -u -rb286d241c3bfefe14166cc01382e806c98b54b5a -r268c1647f0094f6c43aeceaa5793437562cffe5a
--- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Data.TestUtil/CloneAssert.cs (.../CloneAssert.cs) (revision b286d241c3bfefe14166cc01382e806c98b54b5a)
+++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Data.TestUtil/CloneAssert.cs (.../CloneAssert.cs) (revision 268c1647f0094f6c43aeceaa5793437562cffe5a)
@@ -22,7 +22,6 @@
using Core.Common.Data.TestUtil;
using NUnit.Framework;
using Ringtoets.Common.Data.TestUtil;
-using CommonCloneAssert = Ringtoets.Common.Data.TestUtil.CloneAssert;
namespace Ringtoets.GrassCoverErosionInwards.Data.TestUtil
{
Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.TestUtil/CloneAssert.cs
===================================================================
diff -u -rb286d241c3bfefe14166cc01382e806c98b54b5a -r268c1647f0094f6c43aeceaa5793437562cffe5a
--- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.TestUtil/CloneAssert.cs (.../CloneAssert.cs) (revision b286d241c3bfefe14166cc01382e806c98b54b5a)
+++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.TestUtil/CloneAssert.cs (.../CloneAssert.cs) (revision 268c1647f0094f6c43aeceaa5793437562cffe5a)
@@ -22,7 +22,6 @@
using Core.Common.Data.TestUtil;
using NUnit.Framework;
using Ringtoets.Common.Data.TestUtil;
-using CommonCloneAssert = Ringtoets.Common.Data.TestUtil.CloneAssert;
namespace Ringtoets.HeightStructures.Data.TestUtil
{
Index: Ringtoets/Piping/test/Ringtoets.Piping.Data.TestUtil/CloneAssert.cs
===================================================================
diff -u -rb286d241c3bfefe14166cc01382e806c98b54b5a -r268c1647f0094f6c43aeceaa5793437562cffe5a
--- Ringtoets/Piping/test/Ringtoets.Piping.Data.TestUtil/CloneAssert.cs (.../CloneAssert.cs) (revision b286d241c3bfefe14166cc01382e806c98b54b5a)
+++ Ringtoets/Piping/test/Ringtoets.Piping.Data.TestUtil/CloneAssert.cs (.../CloneAssert.cs) (revision 268c1647f0094f6c43aeceaa5793437562cffe5a)
@@ -22,7 +22,6 @@
using Core.Common.Data.TestUtil;
using NUnit.Framework;
using Ringtoets.Common.Data.TestUtil;
-using CommonCloneAssert = Ringtoets.Common.Data.TestUtil.CloneAssert;
namespace Ringtoets.Piping.Data.TestUtil
{
Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Data.TestUtil/CloneAssert.cs
===================================================================
diff -u -rb286d241c3bfefe14166cc01382e806c98b54b5a -r268c1647f0094f6c43aeceaa5793437562cffe5a
--- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Data.TestUtil/CloneAssert.cs (.../CloneAssert.cs) (revision b286d241c3bfefe14166cc01382e806c98b54b5a)
+++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Data.TestUtil/CloneAssert.cs (.../CloneAssert.cs) (revision 268c1647f0094f6c43aeceaa5793437562cffe5a)
@@ -22,7 +22,6 @@
using Core.Common.Data.TestUtil;
using NUnit.Framework;
using Ringtoets.Common.Data.TestUtil;
-using CommonCloneAssert = Ringtoets.Common.Data.TestUtil.CloneAssert;
namespace Ringtoets.StabilityPointStructures.Data.TestUtil
{