Index: Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/StochasticSoilProfileTest.cs =================================================================== diff -u -r7172df944db7fd2d59d68a7a8def96110a44ed9b -r583456a0f5395189a54a8cedf4e4a7b40945d990 --- Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/StochasticSoilProfileTest.cs (.../StochasticSoilProfileTest.cs) (revision 7172df944db7fd2d59d68a7a8def96110a44ed9b) +++ Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/StochasticSoilProfileTest.cs (.../StochasticSoilProfileTest.cs) (revision 583456a0f5395189a54a8cedf4e4a7b40945d990) @@ -196,6 +196,21 @@ } [Test] + public void GetHashCode_EqualStochasticSoilProfile_ReturnSameHashCode() + { + // Setup + var stochasticSoilProfileA = new StochasticSoilProfile(0.2, SoilProfileType.SoilProfile1D, 234); + var stochasticSoilProfileB = new StochasticSoilProfile(0.2, SoilProfileType.SoilProfile1D, 234); + + // Call + int hashCodeOne = stochasticSoilProfileA.GetHashCode(); + int hashCodeTwo = stochasticSoilProfileB.GetHashCode(); + + // Assert + Assert.AreEqual(hashCodeOne, hashCodeTwo); + } + + [Test] public void ToString_WithNullName_ReturnsStringEmpty() { // Setup