Index: Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil.Test/RingtoetsProjectMigrationTestHelperTest.cs =================================================================== diff -u -r3fb0df0ed6e64657154700ee7706e035d5bf99f5 -r9ca0f3be4aa0ee4c0052e33ba266fc0ea3b66b4a --- Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil.Test/RingtoetsProjectMigrationTestHelperTest.cs (.../RingtoetsProjectMigrationTestHelperTest.cs) (revision 3fb0df0ed6e64657154700ee7706e035d5bf99f5) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil.Test/RingtoetsProjectMigrationTestHelperTest.cs (.../RingtoetsProjectMigrationTestHelperTest.cs) (revision 9ca0f3be4aa0ee4c0052e33ba266fc0ea3b66b4a) @@ -72,7 +72,7 @@ string[] filePaths = RingtoetsProjectMigrationTestHelper.GetAllOutdatedSupportedProjectFilePaths().ToArray(); // Assert - const int expectedNrOfVersions = 1; + const int expectedNrOfVersions = 2; Assert.AreEqual(expectedNrOfVersions, filePaths.Length); foreach (string filePath in filePaths) @@ -82,7 +82,8 @@ IEnumerable expectedProjectVersions = new[] { - "5" + "5", + "17.1" }; List returnedProjectVersions = filePaths.Select(fp => new RingtoetsVersionedFile(fp).GetVersion()).ToList(); CollectionAssert.AreEqual(expectedProjectVersions, returnedProjectVersions); Index: Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/RingtoetsProjectMigrationTestHelper.cs =================================================================== diff -u -r3fb0df0ed6e64657154700ee7706e035d5bf99f5 -r9ca0f3be4aa0ee4c0052e33ba266fc0ea3b66b4a --- Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/RingtoetsProjectMigrationTestHelper.cs (.../RingtoetsProjectMigrationTestHelper.cs) (revision 3fb0df0ed6e64657154700ee7706e035d5bf99f5) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.TestUtil/RingtoetsProjectMigrationTestHelper.cs (.../RingtoetsProjectMigrationTestHelper.cs) (revision 9ca0f3be4aa0ee4c0052e33ba266fc0ea3b66b4a) @@ -67,11 +67,8 @@ /// outdated Ringtoets projects. public static IEnumerable GetAllOutdatedSupportedProjectFilePaths() { - const string projectFileName = "FullTestProject164.rtd"; - return new[] - { - TestHelper.GetTestDataPath(testDataPath, projectFileName) - }; + yield return TestHelper.GetTestDataPath(testDataPath, GetTestProjectFileName("164")); + yield return TestHelper.GetTestDataPath(testDataPath, GetTestProjectFileName("171")); } /// @@ -85,5 +82,10 @@ const string projectFileName = "UnsupportedVersion8.rtd"; return TestHelper.GetTestDataPath(testDataPath, projectFileName); } + + private static string GetTestProjectFileName(string versionNumber) + { + return string.Format("FullTestProject{0}.rtd", versionNumber); + } } } \ No newline at end of file