Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.Test/HeightStructureTest.cs =================================================================== diff -u -r1c568c57d0e52050b688773ec8570157c894d4a9 -r9ca2ce99f8b1d93fb1edde4e505b5acc5094a256 --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.Test/HeightStructureTest.cs (.../HeightStructureTest.cs) (revision 1c568c57d0e52050b688773ec8570157c894d4a9) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.Test/HeightStructureTest.cs (.../HeightStructureTest.cs) (revision 9ca2ce99f8b1d93fb1edde4e505b5acc5094a256) @@ -271,15 +271,15 @@ // Assert Assert.AreNotEqual(otherStructure.Id, structure.Id); Assert.AreEqual(otherStructure.Name, structure.Name); - AssertAreEqualButNotSame(otherStructure.Location, structure.Location); + TestHelper.AssertAreEqualButNotSame(otherStructure.Location, structure.Location); Assert.AreEqual(otherStructure.StructureNormalOrientation, structure.StructureNormalOrientation); - AssertAreEqualButNotSame(otherStructure.AllowedLevelIncreaseStorage, structure.AllowedLevelIncreaseStorage); - AssertAreEqualButNotSame(otherStructure.CriticalOvertoppingDischarge, structure.CriticalOvertoppingDischarge); + TestHelper.AssertAreEqualButNotSame(otherStructure.AllowedLevelIncreaseStorage, structure.AllowedLevelIncreaseStorage); + TestHelper.AssertAreEqualButNotSame(otherStructure.CriticalOvertoppingDischarge, structure.CriticalOvertoppingDischarge); Assert.AreEqual(otherStructure.FailureProbabilityStructureWithErosion, structure.FailureProbabilityStructureWithErosion); - AssertAreEqualButNotSame(otherStructure.FlowWidthAtBottomProtection, structure.FlowWidthAtBottomProtection); - AssertAreEqualButNotSame(otherStructure.LevelCrestStructure, structure.LevelCrestStructure); - AssertAreEqualButNotSame(otherStructure.StorageStructureArea, structure.StorageStructureArea); - AssertAreEqualButNotSame(otherStructure.WidthFlowApertures, structure.WidthFlowApertures); + TestHelper.AssertAreEqualButNotSame(otherStructure.FlowWidthAtBottomProtection, structure.FlowWidthAtBottomProtection); + TestHelper.AssertAreEqualButNotSame(otherStructure.LevelCrestStructure, structure.LevelCrestStructure); + TestHelper.AssertAreEqualButNotSame(otherStructure.StorageStructureArea, structure.StorageStructureArea); + TestHelper.AssertAreEqualButNotSame(otherStructure.WidthFlowApertures, structure.WidthFlowApertures); } [Test] @@ -360,11 +360,5 @@ // Assert Assert.AreEqual(hashCodeOne, hashCodeTwo); } - - private static void AssertAreEqualButNotSame(object expected, object actual) - { - Assert.AreEqual(expected, actual, "Objects not equal"); - Assert.AreNotSame(expected, actual, "Objects the same"); - } } } \ No newline at end of file