Index: Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfile/LayerPropertiesTest.cs =================================================================== diff -u -rc28cee59f7b527892aa7e5d8acb92fc9732196e9 -r2d7f22520e157ccfefbf12a4d9845de8bfb04f50 --- Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfile/LayerPropertiesTest.cs (.../LayerPropertiesTest.cs) (revision c28cee59f7b527892aa7e5d8acb92fc9732196e9) +++ Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfile/LayerPropertiesTest.cs (.../LayerPropertiesTest.cs) (revision 2d7f22520e157ccfefbf12a4d9845de8bfb04f50) @@ -38,7 +38,7 @@ TestDelegate test = () => new LayerProperties(null, ""); // Assert - var paramName = Assert.Throws(test).ParamName; + string paramName = Assert.Throws(test).ParamName; Assert.AreEqual("reader", paramName); } @@ -54,7 +54,7 @@ TestDelegate test = () => new LayerProperties(reader, null); // Assert - var paramName = Assert.Throws(test).ParamName; + string paramName = Assert.Throws(test).ParamName; Assert.AreEqual("profileName", paramName); mocks.VerifyAll(); } @@ -98,7 +98,6 @@ reader.Expect(r => r.ReadOrDefault(SoilProfileDatabaseColumns.PermeabilityDeviation)).Return(permeabilityDeviation); mocks.ReplayAll(); - // Call var properties = new LayerProperties(reader, ""); @@ -118,6 +117,7 @@ Assert.AreEqual(permeabilityDeviation, properties.PermeabilityDeviation); mocks.VerifyAll(); } + [Test] public void LayerProperties_ReaderThrowsInvalidCastException_ThrowsPipingSoilProfileReadException() { @@ -141,7 +141,7 @@ path, profileName); - var exception = Assert.Throws(test); + PipingSoilProfileReadException exception = Assert.Throws(test); Assert.AreEqual(expectedMessage, exception.Message); Assert.AreEqual(profileName, exception.ProfileName); mocks.VerifyAll();