Index: Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfile/PipingSoilProfileReaderTest.cs =================================================================== diff -u -rf817bfc2122cfa0a48bd19ad8518a948dfd7c95c -r6afbb616ce84cccaf56617d60c5cd821b00daab0 --- Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfile/PipingSoilProfileReaderTest.cs (.../PipingSoilProfileReaderTest.cs) (revision f817bfc2122cfa0a48bd19ad8518a948dfd7c95c) +++ Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfile/PipingSoilProfileReaderTest.cs (.../PipingSoilProfileReaderTest.cs) (revision 6afbb616ce84cccaf56617d60c5cd821b00daab0) @@ -72,7 +72,7 @@ }; // Assert - CriticalFileReadException exception = Assert.Throws(test); + var exception = Assert.Throws(test); string expectedMessage = $"Fout bij het lezen van bestand '{fileName}': bestandspad mag niet leeg of ongedefinieerd zijn."; Assert.AreEqual(expectedMessage, exception.Message); } @@ -97,7 +97,7 @@ }; // Assert - CriticalFileReadException exception = Assert.Throws(test); + var exception = Assert.Throws(test); Assert.AreEqual(expectedMessage, exception.Message); Assert.IsTrue(TestHelper.CanOpenFileForWrite(dbFile)); } @@ -152,7 +152,7 @@ }; // Assert - CriticalFileReadException exception = Assert.Throws(test); + var exception = Assert.Throws(test); Assert.AreEqual(string.Format(Resources.PipingSoilProfileReader_Database_incorrect_version_requires_Version_0_, version), exception.Message); Assert.IsTrue(TestHelper.CanOpenFileForWrite(dbFile)); } @@ -240,7 +240,7 @@ TestDelegate profile = () => pipingSoilProfilesReader.ReadProfile(); // Assert - PipingSoilProfileReadException exception = Assert.Throws(profile); + var exception = Assert.Throws(profile); string expectedMessage = new FileReaderErrorMessageBuilder(databaseFilePath) .WithSubject("ondergrondschematisatie 'Profile'") .Build(Resources.SoilLayer2DReader_Geometry_contains_no_valid_xml); @@ -269,7 +269,7 @@ TestDelegate profile = () => pipingSoilProfilesReader.ReadProfile(); // Assert - PipingSoilProfileReadException exception = Assert.Throws(profile); + var exception = Assert.Throws(profile); string message = new FileReaderErrorMessageBuilder(databaseFilePath) .WithSubject("ondergrondschematisatie 'Profile'") .Build(string.Format(Resources.Error_Can_not_determine_1D_profile_with_vertical_segments_at_X_0_, 85.2)); @@ -662,7 +662,7 @@ { // When ICollection result = new List(); - int skipped = 0; + var skipped = 0; while (pipingSoilProfilesReader.HasNext) {