Index: Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfile/SoilProfile2DReaderTest.cs =================================================================== diff -u -r1b269dccd0ad017fd308a5c9e6639d9a6867b018 -rc28cee59f7b527892aa7e5d8acb92fc9732196e9 --- Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfile/SoilProfile2DReaderTest.cs (.../SoilProfile2DReaderTest.cs) (revision 1b269dccd0ad017fd308a5c9e6639d9a6867b018) +++ Ringtoets/Piping/test/Ringtoets.Piping.IO.Test/SoilProfile/SoilProfile2DReaderTest.cs (.../SoilProfile2DReaderTest.cs) (revision c28cee59f7b527892aa7e5d8acb92fc9732196e9) @@ -320,6 +320,7 @@ { // Setup reader.Expect(r => r.Read(SoilProfileDatabaseColumns.LayerCount)).Return(1); + reader.Expect(r => r.Read(SoilProfileDatabaseColumns.ProfileName)).Return(""); reader.Expect(r => r.Read(SoilProfileDatabaseColumns.IntersectionX)).Return(0.0).Repeat.Any(); reader.Expect(r => r.Read(SoilProfileDatabaseColumns.LayerGeometry)).Return(someGeometry).Repeat.Any(); reader.Expect(r => r.ReadOrDefault(SoilProfileDatabaseColumns.BelowPhreaticLevelDistribution)).Return(1); @@ -331,7 +332,7 @@ // Assert var message = Assert.Throws(test).Message; var expected = string.Format( - "Fout bij het lezen van bestand '' (ondergrondschematisatie ''): De parameter '{0}' is niet verschoven lognormaal verdeeld.", + "Fout bij het lezen van bestand '' (ondergrondschematisatie ''): Parameter '{0}' is niet verschoven lognormaal verdeeld.", "Verzadigd gewicht"); Assert.AreEqual(expected, message); mocks.VerifyAll(); @@ -342,6 +343,7 @@ { // Setup reader.Expect(r => r.Read(SoilProfileDatabaseColumns.LayerCount)).Return(1); + reader.Expect(r => r.Read(SoilProfileDatabaseColumns.ProfileName)).Return(""); reader.Expect(r => r.Read(SoilProfileDatabaseColumns.IntersectionX)).Return(0.0).Repeat.Any(); reader.Expect(r => r.Read(SoilProfileDatabaseColumns.LayerGeometry)).Return(someGeometry).Repeat.Any(); reader.Expect(r => r.ReadOrDefault(SoilProfileDatabaseColumns.DiameterD70Distribution)).Return(1); @@ -353,7 +355,7 @@ // Assert var message = Assert.Throws(test).Message; var expected = string.Format( - "Fout bij het lezen van bestand '' (ondergrondschematisatie ''): De parameter '{0}' is niet lognormaal verdeeld.", + "Fout bij het lezen van bestand '' (ondergrondschematisatie ''): Parameter '{0}' is niet lognormaal verdeeld.", "Korrelgrootte"); Assert.AreEqual(expected, message); mocks.VerifyAll(); @@ -364,6 +366,7 @@ { // Setup reader.Expect(r => r.Read(SoilProfileDatabaseColumns.LayerCount)).Return(1); + reader.Expect(r => r.Read(SoilProfileDatabaseColumns.ProfileName)).Return(""); reader.Expect(r => r.Read(SoilProfileDatabaseColumns.IntersectionX)).Return(0.0).Repeat.Any(); reader.Expect(r => r.Read(SoilProfileDatabaseColumns.LayerGeometry)).Return(someGeometry).Repeat.Any(); reader.Expect(r => r.ReadOrDefault(SoilProfileDatabaseColumns.DiameterD70Distribution)).Return(SoilLayerConstants.LogNormalDistributionValue); @@ -376,7 +379,7 @@ // Assert var message = Assert.Throws(test).Message; var expected = string.Format( - "Fout bij het lezen van bestand '' (ondergrondschematisatie ''): De parameter '{0}' is niet lognormaal verdeeld.", + "Fout bij het lezen van bestand '' (ondergrondschematisatie ''): Parameter '{0}' is niet lognormaal verdeeld.", "Korrelgrootte"); Assert.AreEqual(expected, message); mocks.VerifyAll(); @@ -387,6 +390,7 @@ { // Setup reader.Expect(r => r.Read(SoilProfileDatabaseColumns.LayerCount)).Return(1); + reader.Expect(r => r.Read(SoilProfileDatabaseColumns.ProfileName)).Return(""); reader.Expect(r => r.Read(SoilProfileDatabaseColumns.IntersectionX)).Return(0.0).Repeat.Any(); reader.Expect(r => r.Read(SoilProfileDatabaseColumns.LayerGeometry)).Return(someGeometry).Repeat.Any(); reader.Expect(r => r.ReadOrDefault(SoilProfileDatabaseColumns.PermeabilityDistribution)).Return(1); @@ -398,7 +402,7 @@ // Assert var message = Assert.Throws(test).Message; var expected = string.Format( - "Fout bij het lezen van bestand '' (ondergrondschematisatie ''): De parameter '{0}' is niet lognormaal verdeeld.", + "Fout bij het lezen van bestand '' (ondergrondschematisatie ''): Parameter '{0}' is niet lognormaal verdeeld.", "Doorlatendheid"); Assert.AreEqual(expected, message); mocks.VerifyAll(); @@ -409,6 +413,7 @@ { // Setup reader.Expect(r => r.Read(SoilProfileDatabaseColumns.LayerCount)).Return(1); + reader.Expect(r => r.Read(SoilProfileDatabaseColumns.ProfileName)).Return(""); reader.Expect(r => r.Read(SoilProfileDatabaseColumns.IntersectionX)).Return(0.0).Repeat.Any(); reader.Expect(r => r.Read(SoilProfileDatabaseColumns.LayerGeometry)).Return(someGeometry).Repeat.Any(); reader.Expect(r => r.ReadOrDefault(SoilProfileDatabaseColumns.PermeabilityDistribution)).Return(SoilLayerConstants.LogNormalDistributionValue); @@ -421,7 +426,7 @@ // Assert var message = Assert.Throws(test).Message; var expected = string.Format( - "Fout bij het lezen van bestand '' (ondergrondschematisatie ''): De parameter '{0}' is niet lognormaal verdeeld.", + "Fout bij het lezen van bestand '' (ondergrondschematisatie ''): Parameter '{0}' is niet lognormaal verdeeld.", "Doorlatendheid"); Assert.AreEqual(expected, message); mocks.VerifyAll();