Index: Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/SoilProfile/PipingStochasticSoilModelTest.cs =================================================================== diff -u -r6cf604a94300560817de70fd42d09baa5b22c3a6 -r069fd5204ede2f98296a58237a203b3090cd9d89 --- Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/SoilProfile/PipingStochasticSoilModelTest.cs (.../PipingStochasticSoilModelTest.cs) (revision 6cf604a94300560817de70fd42d09baa5b22c3a6) +++ Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/SoilProfile/PipingStochasticSoilModelTest.cs (.../PipingStochasticSoilModelTest.cs) (revision 069fd5204ede2f98296a58237a203b3090cd9d89) @@ -308,10 +308,12 @@ PipingStochasticSoilModel otherModel = CreateEmptyModel(); otherModel.StochasticSoilProfiles.Add(addedProfile); - var existingProfile = new PipingStochasticSoilProfile(0.2, PipingSoilProfileTestFactory.CreatePipingSoilProfile()); + PipingSoilProfile existingProfile = PipingSoilProfileTestFactory.CreatePipingSoilProfile(); + var existingStochasticSoilProfileOne = new PipingStochasticSoilProfile(0.2, existingProfile); + var existingStochasticSoilProfileTwo = new PipingStochasticSoilProfile(0.3, existingProfile); PipingStochasticSoilModel model = CreateEmptyModel(); - model.StochasticSoilProfiles.Add(existingProfile); - model.StochasticSoilProfiles.Add(existingProfile); + model.StochasticSoilProfiles.Add(existingStochasticSoilProfileOne); + model.StochasticSoilProfiles.Add(existingStochasticSoilProfileTwo); // Call TestDelegate call = () => model.Update(otherModel); @@ -325,8 +327,8 @@ Assert.AreEqual(2, model.StochasticSoilProfiles.Count); CollectionAssert.AreEqual(new[] { - existingProfile, - existingProfile + existingStochasticSoilProfileOne, + existingStochasticSoilProfileTwo }, model.StochasticSoilProfiles); }