Index: Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/StochasticSoilProfileTest.cs =================================================================== diff -u -r11770f197071c45397a34ec91fc3981acf05c850 -r133ab46a14ee9508c8dd5e4f82381da606076ae0 --- Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/StochasticSoilProfileTest.cs (.../StochasticSoilProfileTest.cs) (revision 11770f197071c45397a34ec91fc3981acf05c850) +++ Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/StochasticSoilProfileTest.cs (.../StochasticSoilProfileTest.cs) (revision 133ab46a14ee9508c8dd5e4f82381da606076ae0) @@ -248,7 +248,6 @@ Assert.AreEqual(stochasticSoilProfile.SoilProfile.ToString(), text); } - private class TestStochasticSoilProfile : StochasticSoilProfile { public TestStochasticSoilProfile(StochasticSoilProfile profile) @@ -295,6 +294,16 @@ StochasticSoilProfile profileD = CreateRandomStochasticProfile(21); var profileE = new StochasticSoilProfile(0.5, SoilProfileType.SoilProfile1D, 25); var profileF = new StochasticSoilProfile(0.5, SoilProfileType.SoilProfile1D, 45); + var profileG = new StochasticSoilProfile(0.5, SoilProfileType.SoilProfile2D, 25); + var profileH = new StochasticSoilProfile(0.15, SoilProfileType.SoilProfile1D, 25); + var profileI = new StochasticSoilProfile(0.15, SoilProfileType.SoilProfile1D, 25) + { + SoilProfile = CreateRandomProfile(new Random(12)) + }; + var profileJ = new StochasticSoilProfile(0.15, SoilProfileType.SoilProfile1D, 25) + { + SoilProfile = CreateRandomProfile(new Random(32)) + }; return new[] { @@ -321,6 +330,18 @@ new TestCaseData(profileE, profileF, true) { TestName = "Equals_DifferentIds_True" + }, + new TestCaseData(profileE, profileG, false) + { + TestName = "Equals_DifferentTypes_False" + }, + new TestCaseData(profileE, profileH, false) + { + TestName = "Equals_DifferentProbability_False" + }, + new TestCaseData(profileI, profileJ, false) + { + TestName = "Equals_DifferentProfile_False" } }; }