Index: Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.IO/Helpers/GeometryGmlFormatHelper.cs
===================================================================
diff -u -rc9491dc3b39736341269161cb8620cf56ab1ff29 -r72a6b70c2348c56b05ba2f10c631322d7f1f007e
--- Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.IO/Helpers/GeometryGmlFormatHelper.cs (.../GeometryGmlFormatHelper.cs) (revision c9491dc3b39736341269161cb8620cf56ab1ff29)
+++ Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.IO/Helpers/GeometryGmlFormatHelper.cs (.../GeometryGmlFormatHelper.cs) (revision 72a6b70c2348c56b05ba2f10c631322d7f1f007e)
@@ -55,20 +55,8 @@
return geometry.Select(Format).Aggregate((c1, c2) => c1 + " " + c2);
}
- ///
- /// Formats a to a string for GML.
- ///
- /// The point to format.
- /// A formatted string of the given point.
- /// Thrown when
- /// is null.
- public static string Format(Point2D point)
+ private static string Format(Point2D point)
{
- if (point == null)
- {
- throw new ArgumentNullException(nameof(point));
- }
-
return point.X.ToString(CultureInfo.InvariantCulture) + " " + point.Y.ToString(CultureInfo.InvariantCulture);
}
}
Index: Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.IO/Properties/Resources.Designer.cs
===================================================================
diff -u -rf9b6dc3772d4ba0ca860a50218a93945899630b6 -r72a6b70c2348c56b05ba2f10c631322d7f1f007e
--- Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.IO/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision f9b6dc3772d4ba0ca860a50218a93945899630b6)
+++ Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.IO/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 72a6b70c2348c56b05ba2f10c631322d7f1f007e)
@@ -1,4 +1,4 @@
-// Copyright (C) Stichting Deltares 2022. All rights reserved.
+// Copyright (C) Stichting Deltares 2022. All rights reserved.
//
// This file is part of Riskeer.
//
@@ -22,7 +22,6 @@
//------------------------------------------------------------------------------
//
// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -91,15 +90,6 @@
}
///
- /// Looks up a localized string similar to DKTRJCT.
- ///
- internal static string AssessmentSectionTypeOld {
- get {
- return ResourceManager.GetString("AssessmentSectionTypeOld", resourceCulture);
- }
- }
-
- ///
/// Looks up a localized string similar to EPSG:28992.
///
internal static string CoordinateSystemName {
@@ -296,14 +286,5 @@
return ResourceManager.GetString("FullAssembly", resourceCulture);
}
}
-
- ///
- /// Looks up a localized string similar to m.
- ///
- internal static string SerializableMeasure_Meter {
- get {
- return ResourceManager.GetString("SerializableMeasure_Meter", resourceCulture);
- }
- }
}
}
Index: Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.IO/Properties/Resources.resx
===================================================================
diff -u -rf9b6dc3772d4ba0ca860a50218a93945899630b6 -r72a6b70c2348c56b05ba2f10c631322d7f1f007e
--- Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.IO/Properties/Resources.resx (.../Resources.resx) (revision f9b6dc3772d4ba0ca860a50218a93945899630b6)
+++ Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.IO/Properties/Resources.resx (.../Resources.resx) (revision 72a6b70c2348c56b05ba2f10c631322d7f1f007e)
@@ -117,18 +117,12 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
- DKTRJCT
-
Dijktraject
VOLLDG
-
- m
-
EPSG:28992
Index: Riskeer/AssemblyTool/test/Riskeer.AssemblyTool.IO.Test/Helpers/GeometryGmlFormatHelperTest.cs
===================================================================
diff -u -rc9491dc3b39736341269161cb8620cf56ab1ff29 -r72a6b70c2348c56b05ba2f10c631322d7f1f007e
--- Riskeer/AssemblyTool/test/Riskeer.AssemblyTool.IO.Test/Helpers/GeometryGmlFormatHelperTest.cs (.../GeometryGmlFormatHelperTest.cs) (revision c9491dc3b39736341269161cb8620cf56ab1ff29)
+++ Riskeer/AssemblyTool/test/Riskeer.AssemblyTool.IO.Test/Helpers/GeometryGmlFormatHelperTest.cs (.../GeometryGmlFormatHelperTest.cs) (revision 72a6b70c2348c56b05ba2f10c631322d7f1f007e)
@@ -74,31 +74,5 @@
.Aggregate((p1, p2) => p1 + " " + p2),
formattedPoint);
}
-
- [Test]
- public void Format_PointNull_ThrowsArgumentNullException()
- {
- // Call
- void Call() => GeometryGmlFormatHelper.Format((Point2D) null);
-
- // Assert
- var exception = Assert.Throws(Call);
- Assert.AreEqual("point", exception.ParamName);
- }
-
- [Test]
- public void Format_WithPoint_ReturnsFormattedString()
- {
- // Setup
- var random = new Random(39);
- var point = new Point2D(random.NextDouble(), random.NextDouble());
-
- // Call
- string formattedPoint = GeometryGmlFormatHelper.Format(point);
-
- // Assert
- Assert.AreEqual(point.X.ToString(CultureInfo.InvariantCulture) + " " + point.Y.ToString(CultureInfo.InvariantCulture),
- formattedPoint);
- }
}
}
\ No newline at end of file