Index: Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.TestUtil.Test/InvalidIdTestHelperTest.cs
===================================================================
diff -u
--- Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.TestUtil.Test/InvalidIdTestHelperTest.cs (revision 0)
+++ Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.TestUtil.Test/InvalidIdTestHelperTest.cs (revision 46c6e661ed805f0fe44e3a70e865415cf57f0cf6)
@@ -0,0 +1,54 @@
+// Copyright (C) Stichting Deltares 2017. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System.Collections.Generic;
+using System.Linq;
+using NUnit.Framework;
+
+namespace Ringtoets.AssemblyTool.IO.TestUtil.Test
+{
+ [TestFixture]
+ public class InvalidIdTestHelperTest
+ {
+ [Test]
+ public void InvalidIdCases_Always_ReturnsExpectedCases()
+ {
+ // Call
+ IEnumerable testCases = InvalidIdTestHelper.InvalidIdCases.ToArray();
+
+ // Assert
+ var expectedCases = new[]
+ {
+ new TestCaseData(""),
+ new TestCaseData(" "),
+ new TestCaseData("1nvalidId"),
+ new TestCaseData("invalidId#")
+ };
+
+ int nrOfExpectedCases = expectedCases.Length;
+ Assert.AreEqual(nrOfExpectedCases, testCases.Count());
+ for (var i = 0; i < nrOfExpectedCases; i++)
+ {
+ Assert.AreEqual(expectedCases[i].Arguments[0], testCases.ElementAt(i).Arguments[0]);
+ }
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.TestUtil.Test/Ringtoets.AssemblyTool.IO.TestUtil.Test.csproj
===================================================================
diff -u -r0aa5b0a377483e4042760e4c88bc6a8dd43570ff -r46c6e661ed805f0fe44e3a70e865415cf57f0cf6
--- Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.TestUtil.Test/Ringtoets.AssemblyTool.IO.TestUtil.Test.csproj (.../Ringtoets.AssemblyTool.IO.TestUtil.Test.csproj) (revision 0aa5b0a377483e4042760e4c88bc6a8dd43570ff)
+++ Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.TestUtil.Test/Ringtoets.AssemblyTool.IO.TestUtil.Test.csproj (.../Ringtoets.AssemblyTool.IO.TestUtil.Test.csproj) (revision 46c6e661ed805f0fe44e3a70e865415cf57f0cf6)
@@ -7,16 +7,27 @@
+
+ ..\..\..\..\packages\NUnit.3.8.1\lib\net40\nunit.framework.dll
+
+
Copying.licenseheader
+
+
+
+ {C7023D25-F8DF-4E3F-BF5D-A8F961CC63F7}
+ Ringtoets.AssemblyTool.IO.TestUtil
+
+
\ No newline at end of file
Index: Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.TestUtil.Test/packages.config
===================================================================
diff -u
--- Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.TestUtil.Test/packages.config (revision 0)
+++ Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.TestUtil.Test/packages.config (revision 46c6e661ed805f0fe44e3a70e865415cf57f0cf6)
@@ -0,0 +1,26 @@
+
+
+
+
+
\ No newline at end of file
Index: Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.TestUtil/InvalidIdTestHelper.cs
===================================================================
diff -u
--- Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.TestUtil/InvalidIdTestHelper.cs (revision 0)
+++ Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.TestUtil/InvalidIdTestHelper.cs (revision 46c6e661ed805f0fe44e3a70e865415cf57f0cf6)
@@ -0,0 +1,46 @@
+// Copyright (C) Stichting Deltares 2017. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System.Collections.Generic;
+using NUnit.Framework;
+
+namespace Ringtoets.AssemblyTool.IO.TestUtil
+{
+ ///
+ /// Class that can be used to generate invalid ids for the serializable components.
+ ///
+ public static class InvalidIdTestHelper
+ {
+ ///
+ /// Gets a collection of with invalid ids.
+ ///
+ public static IEnumerable InvalidIdCases
+ {
+ get
+ {
+ yield return new TestCaseData("");
+ yield return new TestCaseData(" ");
+ yield return new TestCaseData("1nvalidId");
+ yield return new TestCaseData("invalidId#");
+ }
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.TestUtil/Ringtoets.AssemblyTool.IO.TestUtil.csproj
===================================================================
diff -u -r2cdd64c04b5525258950cf336810e447bb763740 -r46c6e661ed805f0fe44e3a70e865415cf57f0cf6
--- Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.TestUtil/Ringtoets.AssemblyTool.IO.TestUtil.csproj (.../Ringtoets.AssemblyTool.IO.TestUtil.csproj) (revision 2cdd64c04b5525258950cf336810e447bb763740)
+++ Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.TestUtil/Ringtoets.AssemblyTool.IO.TestUtil.csproj (.../Ringtoets.AssemblyTool.IO.TestUtil.csproj) (revision 46c6e661ed805f0fe44e3a70e865415cf57f0cf6)
@@ -7,6 +7,7 @@
+