public void Update_WithValidProfile_UpdatesProperties(PipingStochasticSoilProfile stochasticProfile,
                                                              PipingStochasticSoilProfile otherStochasticProfile)
        {
            // Call
            stochasticProfile.Update(otherStochasticProfile);

            // Assert
            Assert.AreEqual(otherStochasticProfile.Probability, stochasticProfile.Probability);
            Assert.AreSame(otherStochasticProfile.SoilProfile, stochasticProfile.SoilProfile);
        }
        public void Update_SoilProfileNull_ThrowsArgumentNullException()
        {
            // Setup
            var stochasticProfile = new PipingStochasticSoilProfile(0.0, PipingSoilProfileTestFactory.CreatePipingSoilProfile());

            // Call
            void Call() => stochasticProfile.Update(null);

            // Assert
            var exception = Assert.Throws <ArgumentNullException>(Call);

            Assert.AreEqual("fromProfile", exception.ParamName);
        }