Index: Ringtoets/Common/src/Ringtoets.Common.Data/FailureMechanismSection.cs
===================================================================
diff -u -r337f02d824bf5352ed8148dbda0ca6b2b61a20c1 -rc96faf42eae37d9b6ad63d7ed0250b7fef11bef8
--- Ringtoets/Common/src/Ringtoets.Common.Data/FailureMechanismSection.cs (.../FailureMechanismSection.cs) (revision 337f02d824bf5352ed8148dbda0ca6b2b61a20c1)
+++ Ringtoets/Common/src/Ringtoets.Common.Data/FailureMechanismSection.cs (.../FailureMechanismSection.cs) (revision c96faf42eae37d9b6ad63d7ed0250b7fef11bef8)
@@ -22,9 +22,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
-
using Core.Common.Base.Geometry;
-
using Ringtoets.Common.Data.Properties;
namespace Ringtoets.Common.Data
@@ -44,6 +42,13 @@
///
/// The name.
/// The geometry points.
+ /// Thrown when:
+ /// - is null.
+ /// - is null.
+ /// Thrown when:
+ /// - One ore more elements are null.
+ /// - does not have at lease one geometry point.
+ ///
public FailureMechanismSection(string name, IEnumerable geometryPoints)
{
if (name == null)
@@ -67,7 +72,7 @@
Name = name;
Points = point2Ds;
geometryStart = point2Ds[0];
- geometryEnd = point2Ds[point2Ds.Length-1];
+ geometryEnd = point2Ds[point2Ds.Length - 1];
}
///
Index: Ringtoets/Common/src/Ringtoets.Common.IO/Properties/Resources.Designer.cs
===================================================================
diff -u -r5e0d414ac611e8a6fd5b77a41d0459be8b749e83 -rc96faf42eae37d9b6ad63d7ed0250b7fef11bef8
--- Ringtoets/Common/src/Ringtoets.Common.IO/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 5e0d414ac611e8a6fd5b77a41d0459be8b749e83)
+++ Ringtoets/Common/src/Ringtoets.Common.IO/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision c96faf42eae37d9b6ad63d7ed0250b7fef11bef8)
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
-// Runtime Version:4.0.30319.18444
+// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -79,7 +79,7 @@
}
///
- /// Looks up a localized string similar to Bestand mag uitsluitend polylijnen bevatten..
+ /// Looks up a localized string similar to Het bestand mag uitsluitend polylijnen bevatten..
///
internal static string FailureMechanismSectionReader_OpenPolyLineShapeFile_File_can_only_have_polylines {
get {
@@ -88,7 +88,7 @@
}
///
- /// Looks up a localized string similar to Bestand bevat 1 multi-polylijn, welke niet ondersteund is..
+ /// Looks up a localized string similar to Het bestand bevat 1 multi-polylijn, welke niet ondersteund is..
///
internal static string ReferenceLineReader_File_contains_unsupported_multi_polyline {
get {
@@ -97,7 +97,7 @@
}
///
- /// Looks up a localized string similar to Bestand moet exact 1 gehele polylijn bevatten..
+ /// Looks up a localized string similar to Het bestand moet exact 1 gehele polylijn bevatten..
///
internal static string ReferenceLineReader_File_must_contain_1_polyline {
get {
Index: Ringtoets/Common/src/Ringtoets.Common.IO/Properties/Resources.resx
===================================================================
diff -u -r5e0d414ac611e8a6fd5b77a41d0459be8b749e83 -rc96faf42eae37d9b6ad63d7ed0250b7fef11bef8
--- Ringtoets/Common/src/Ringtoets.Common.IO/Properties/Resources.resx (.../Resources.resx) (revision 5e0d414ac611e8a6fd5b77a41d0459be8b749e83)
+++ Ringtoets/Common/src/Ringtoets.Common.IO/Properties/Resources.resx (.../Resources.resx) (revision c96faf42eae37d9b6ad63d7ed0250b7fef11bef8)
@@ -118,13 +118,13 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
- Bestand bevat 1 multi-polylijn, welke niet ondersteund is.
+ Het bestand bevat 1 multi-polylijn, welke niet ondersteund is.
- Bestand moet exact 1 gehele polylijn bevatten.
+ Het bestand moet exact 1 gehele polylijn bevatten.
- Bestand mag uitsluitend polylijnen bevatten.
+ Het bestand mag uitsluitend polylijnen bevatten.
Het bestand heeft geen attribuut '{0}' welke vereist is om een vakindeling te importeren.
Index: Ringtoets/Common/test/Ringtoets.Common.IO.Test/FailureMechanismSectionReaderTest.cs
===================================================================
diff -u -r5e0d414ac611e8a6fd5b77a41d0459be8b749e83 -rc96faf42eae37d9b6ad63d7ed0250b7fef11bef8
--- Ringtoets/Common/test/Ringtoets.Common.IO.Test/FailureMechanismSectionReaderTest.cs (.../FailureMechanismSectionReaderTest.cs) (revision 5e0d414ac611e8a6fd5b77a41d0459be8b749e83)
+++ Ringtoets/Common/test/Ringtoets.Common.IO.Test/FailureMechanismSectionReaderTest.cs (.../FailureMechanismSectionReaderTest.cs) (revision c96faf42eae37d9b6ad63d7ed0250b7fef11bef8)
@@ -1,13 +1,10 @@
using System;
using System.IO;
using System.Linq;
-
using Core.Common.Base.Geometry;
using Core.Common.IO.Exceptions;
using Core.Common.TestUtil;
-
using NUnit.Framework;
-
using Ringtoets.Common.Data;
namespace Ringtoets.Common.IO.Test
@@ -113,7 +110,7 @@
TestDelegate call = () => new FailureMechanismSectionReader(invalidFilePath);
// Assert
- var expectedMessage = string.Format("Fout bij het lezen van bestand '{0}': Bestand mag uitsluitend polylijnen bevatten.",
+ var expectedMessage = string.Format("Fout bij het lezen van bestand '{0}': Het bestand mag uitsluitend polylijnen bevatten.",
invalidFilePath);
var message = Assert.Throws(call).Message;
Assert.AreEqual(expectedMessage, message);
@@ -218,7 +215,7 @@
// Assert
var expectedSectionName = string.Format("1-1_{0}", i);
Assert.AreEqual(expectedSectionName, section.Name,
- string.Format("Section name is not as expected at index {0}", i));
+ string.Format("Section name is not as expected at index {0}", i));
}
}
}
@@ -284,7 +281,6 @@
reader.ReadFailureMechanismSection();
};
-
// Assert
var message = Assert.Throws(call).Message;
Assert.AreEqual("Het bestand heeft een of meerdere multi-polylijnen, welke niet ondersteund worden.", message);
Index: Ringtoets/Common/test/Ringtoets.Common.IO.Test/ReferenceLineReaderTest.cs
===================================================================
diff -u -reb0fa1ad33501642b7cd6c7639155f9f83fd50b4 -rc96faf42eae37d9b6ad63d7ed0250b7fef11bef8
--- Ringtoets/Common/test/Ringtoets.Common.IO.Test/ReferenceLineReaderTest.cs (.../ReferenceLineReaderTest.cs) (revision eb0fa1ad33501642b7cd6c7639155f9f83fd50b4)
+++ Ringtoets/Common/test/Ringtoets.Common.IO.Test/ReferenceLineReaderTest.cs (.../ReferenceLineReaderTest.cs) (revision c96faf42eae37d9b6ad63d7ed0250b7fef11bef8)
@@ -1,13 +1,10 @@
using System;
using System.IO;
using System.Linq;
-
using Core.Common.Base.Geometry;
using Core.Common.IO.Exceptions;
using Core.Common.TestUtil;
-
using NUnit.Framework;
-
using Ringtoets.Common.Data;
namespace Ringtoets.Common.IO.Test
@@ -20,7 +17,7 @@
{
// Setup
var validReferenceLineShapeFile = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.Common.IO, "traject_10-2.shp");
- var reader = new ReferenceLineReader();
+ var reader = new ReferenceLineReader();
// Call
ReferenceLine referenceLine = reader.ReadReferenceLine(validReferenceLineShapeFile);
@@ -130,7 +127,7 @@
TestDelegate call = () => reader.ReadReferenceLine(invalidFilePath);
// Assert
- var expectedMessage = string.Format("Fout bij het lezen van bestand '{0}': Bestand moet exact 1 gehele polylijn bevatten.",
+ var expectedMessage = string.Format("Fout bij het lezen van bestand '{0}': Het bestand moet exact 1 gehele polylijn bevatten.",
invalidFilePath);
var message = Assert.Throws(call).Message;
Assert.AreEqual(expectedMessage, message);
@@ -149,7 +146,7 @@
TestDelegate call = () => reader.ReadReferenceLine(invalidFilePath);
// Assert
- var expectedMessage = string.Format("Fout bij het lezen van bestand '{0}': Bestand bevat 1 multi-polylijn, welke niet ondersteund is.",
+ var expectedMessage = string.Format("Fout bij het lezen van bestand '{0}': Het bestand bevat 1 multi-polylijn, welke niet ondersteund is.",
invalidFilePath);
var message = Assert.Throws(call).Message;
Assert.AreEqual(expectedMessage, message);