Index: Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfiles/PipingSoilLayerTransformerTest.cs =================================================================== diff -u -r6e13601c60d74ca47c6fa76ed894c03c3aa0cfdf -r7b692ef44a3029ae881190f04c20cfd075927783 --- Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfiles/PipingSoilLayerTransformerTest.cs (.../PipingSoilLayerTransformerTest.cs) (revision 6e13601c60d74ca47c6fa76ed894c03c3aa0cfdf) +++ Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfiles/PipingSoilLayerTransformerTest.cs (.../PipingSoilLayerTransformerTest.cs) (revision 7b692ef44a3029ae881190f04c20cfd075927783) @@ -112,7 +112,7 @@ } [Test] - public void SoilLayer1DTransform_IncorrectLogNormalDistribution_ThrowsImportedDataTransformException() + public void SoilLayer1DTransform_IncorrectShiftedLogNormalDistribution_ThrowsImportedDataTransformException() { // Setup var layer = new SoilLayer1D(0.0) @@ -125,19 +125,19 @@ // Assert Exception exception = Assert.Throws(test); - Assert.AreEqual("Parameter 'Verzadigd gewicht' is niet lognormaal verdeeld.", exception.Message); + Assert.AreEqual("Parameter 'Verzadigd gewicht' is niet verschoven lognormaal verdeeld.", exception.Message); } [Test] - [TestCaseSource(nameof(IncorrectShiftedLogNormalDistributionsSoilLayer1D))] - public void SoilLayer1DTransform_IncorrectShiftedLogNormalDistribution_ThrowsImportedDataTransformException(SoilLayer1D layer, string parameter) + [TestCaseSource(nameof(IncorrectLogNormalDistributionsSoilLayer1D))] + public void SoilLayer1DTransform_IncorrectLogNormalDistribution_ThrowsImportedDataTransformException(SoilLayer1D layer, string parameter) { // Call TestDelegate test = () => PipingSoilLayerTransformer.Transform(layer); // Assert Exception exception = Assert.Throws(test); - Assert.AreEqual($"Parameter '{parameter}' is niet verschoven lognormaal verdeeld.", exception.Message); + Assert.AreEqual($"Parameter '{parameter}' is niet lognormaal verdeeld.", exception.Message); } [Test] @@ -785,7 +785,7 @@ } [Test] - public void SoilLayer2DTransform_IncorrectLogNormalDistribution_ThrowsImportedDataTransformException() + public void SoilLayer2DTransform_IncorrectShiftedLogNormalDistribution_ThrowsImportedDataTransformException() { // Setup var layer = new SoilLayer2D @@ -800,12 +800,12 @@ // Assert Exception exception = Assert.Throws(test); - Assert.AreEqual("Parameter 'Verzadigd gewicht' is niet lognormaal verdeeld.", exception.Message); + Assert.AreEqual("Parameter 'Verzadigd gewicht' is niet verschoven lognormaal verdeeld.", exception.Message); } [Test] - [TestCaseSource(nameof(IncorrectShiftedLogNormalDistributionsSoilLayer2D))] - public void SoilLayer2DTransform_IncorrectShiftedLogNormalDistribution_ThrowsImportedDataTransformException(SoilLayer2D layer, string parameter) + [TestCaseSource(nameof(IncorrectLogNormalDistributionsSoilLayer2D))] + public void SoilLayer2DTransform_IncorrectLogNormalDistribution_ThrowsImportedDataTransformException(SoilLayer2D layer, string parameter) { // Setup double bottom; @@ -815,20 +815,20 @@ // Assert Exception exception = Assert.Throws(test); - Assert.AreEqual($"Parameter '{parameter}' is niet verschoven lognormaal verdeeld.", exception.Message); + Assert.AreEqual($"Parameter '{parameter}' is niet lognormaal verdeeld.", exception.Message); } - private static IEnumerable IncorrectShiftedLogNormalDistributionsSoilLayer1D() + private static IEnumerable IncorrectLogNormalDistributionsSoilLayer1D() { - return IncorrectShiftedLogNormalDistributions(() => new SoilLayer1D(0.0), nameof(SoilLayer1D)); + return IncorrectLogNormalDistributions(() => new SoilLayer1D(0.0), nameof(SoilLayer1D)); } - private static IEnumerable IncorrectShiftedLogNormalDistributionsSoilLayer2D() + private static IEnumerable IncorrectLogNormalDistributionsSoilLayer2D() { - return IncorrectShiftedLogNormalDistributions(() => new SoilLayer2D(), nameof(SoilLayer2D)); + return IncorrectLogNormalDistributions(() => new SoilLayer2D(), nameof(SoilLayer2D)); } - private static IEnumerable IncorrectShiftedLogNormalDistributions(Func soilLayer, string typeName) + private static IEnumerable IncorrectLogNormalDistributions(Func soilLayer, string typeName) { const string testNameFormat = "{0}Transform_Incorrect{1}{{1}}_ThrowsImportedDataTransformException"; const long validDistribution = SoilLayerConstants.LogNormalDistributionValue;