Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/SoilProfile/MacroStabilityInwardsStochasticSoilModelTest.cs =================================================================== diff -u -r069fd5204ede2f98296a58237a203b3090cd9d89 -r9ea64fffa7ea64307fe446351577cbc3d6f4c220 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/SoilProfile/MacroStabilityInwardsStochasticSoilModelTest.cs (.../MacroStabilityInwardsStochasticSoilModelTest.cs) (revision 069fd5204ede2f98296a58237a203b3090cd9d89) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Data.Test/SoilProfile/MacroStabilityInwardsStochasticSoilModelTest.cs (.../MacroStabilityInwardsStochasticSoilModelTest.cs) (revision 9ea64fffa7ea64307fe446351577cbc3d6f4c220) @@ -299,16 +299,17 @@ public void Update_ModelsWithAddedProfilesWithSameNames_ThrowsInvalidOperationException() { // Setup + const string profileName = "Name of Profile"; + MacroStabilityInwardsSoilProfile1D soilProfileOne = - MacroStabilityInwardsSoilProfile1DTestFactory.CreateMacroStabilityInwardsSoilProfile1D(); + MacroStabilityInwardsSoilProfile1DTestFactory.CreateMacroStabilityInwardsSoilProfile1D(profileName); var addedStochasticSoilProfile = new MacroStabilityInwardsStochasticSoilProfile(0.2, soilProfileOne); MacroStabilityInwardsStochasticSoilModel otherModel = CreateEmptyModel(); otherModel.StochasticSoilProfiles.Add(addedStochasticSoilProfile); - MacroStabilityInwardsSoilProfile1D existingSoilProfile = - MacroStabilityInwardsSoilProfile1DTestFactory.CreateMacroStabilityInwardsSoilProfile1D(); - var existingStochasticSoilProfileOne = new MacroStabilityInwardsStochasticSoilProfile(0.2, existingSoilProfile); - var existingStochasticSoilProfileTwo = new MacroStabilityInwardsStochasticSoilProfile(0.3, existingSoilProfile); + MacroStabilityInwardsSoilProfile1D soilProfile = MacroStabilityInwardsSoilProfile1DTestFactory.CreateMacroStabilityInwardsSoilProfile1D(profileName); + var existingStochasticSoilProfileOne = new MacroStabilityInwardsStochasticSoilProfile(0.2,soilProfile); + var existingStochasticSoilProfileTwo = new MacroStabilityInwardsStochasticSoilProfile(0.3, soilProfile); MacroStabilityInwardsStochasticSoilModel model = CreateEmptyModel(); model.StochasticSoilProfiles.Add(existingStochasticSoilProfileOne);