Index: Riskeer/Integration/test/Riskeer.Integration.IO.Test/Importers/HydraulicBoundaryDatabaseImporterTest.cs =================================================================== diff -u -re0e3878b7cb13db4158ecb5e0cf21c2bd85b807e -r1c33828255f3af61e2255936f0fd80963bc21a52 --- Riskeer/Integration/test/Riskeer.Integration.IO.Test/Importers/HydraulicBoundaryDatabaseImporterTest.cs (.../HydraulicBoundaryDatabaseImporterTest.cs) (revision e0e3878b7cb13db4158ecb5e0cf21c2bd85b807e) +++ Riskeer/Integration/test/Riskeer.Integration.IO.Test/Importers/HydraulicBoundaryDatabaseImporterTest.cs (.../HydraulicBoundaryDatabaseImporterTest.cs) (revision 1c33828255f3af61e2255936f0fd80963bc21a52) @@ -42,7 +42,10 @@ public class HydraulicBoundaryDatabaseImporterTest { private const int totalNumberOfSteps = 4; - private static readonly string testDataPath = TestHelper.GetTestDataPath(TestDataPath.Riskeer.Integration.IO, nameof(HydraulicBoundaryDatabaseImporter)); + + private static readonly string testDataPath = TestHelper.GetTestDataPath(TestDataPath.Riskeer.Integration.IO, + nameof(HydraulicBoundaryDatabaseImporter)); + private static readonly string validHrdFilePath = Path.Combine(testDataPath, "complete.sqlite"); private static readonly string validHlcdFilePath = Path.Combine(testDataPath, "hlcd.sqlite"); @@ -288,39 +291,6 @@ } [Test] - [TestCase("hlcdWithScenarioInformationNoEntries")] - [TestCase("hlcdWithScenarioInformationMultipleEntries")] - public void Import_ExistingFileAndHlcdWithInvalidNumberOfScenarioInformationEntries_CancelImportWithErrorMessage(string testFolder) - { - // Setup - var mocks = new MockRepository(); - var handler = mocks.StrictMock(); - mocks.ReplayAll(); - - string path = Path.Combine(testDataPath, testFolder, "complete.sqlite"); - string hlcdFilePath = Path.Combine(Path.GetDirectoryName(path), "hlcd.sqlite"); - - var hydraulicBoundaryData = new HydraulicBoundaryData - { - HydraulicLocationConfigurationDatabase = - { - FilePath = hlcdFilePath - } - }; - - var importer = new HydraulicBoundaryDatabaseImporter(hydraulicBoundaryData, handler, path); - - // Call - var importSuccessful = true; - void Call() => importSuccessful = importer.Import(); - - // Assert - var expectedMessage = $"Fout bij het lezen van bestand '{hlcdFilePath}': de tabel 'ScenarioInformation' in het HLCD bestand moet exact 1 rij bevatten."; - AssertImportFailed(Call, expectedMessage, ref importSuccessful); - mocks.VerifyAll(); - } - - [Test] public void Import_ExistingFileWithoutSettings_CancelImportWithErrorMessage() { // Setup Index: Riskeer/Integration/test/Riskeer.Integration.IO.Test/test-data/HydraulicBoundaryDatabaseImporter/hlcdWithScenarioInformationMultipleEntries/HLCD.sqlite =================================================================== diff -u -rbe2039934e8fb442effc0150a1900f2175ec6a03 -r1c33828255f3af61e2255936f0fd80963bc21a52 Binary files differ Index: Riskeer/Integration/test/Riskeer.Integration.IO.Test/test-data/HydraulicBoundaryDatabaseImporter/hlcdWithScenarioInformationMultipleEntries/complete.config.sqlite =================================================================== diff -u -rbe2039934e8fb442effc0150a1900f2175ec6a03 -r1c33828255f3af61e2255936f0fd80963bc21a52 Binary files differ Index: Riskeer/Integration/test/Riskeer.Integration.IO.Test/test-data/HydraulicBoundaryDatabaseImporter/hlcdWithScenarioInformationMultipleEntries/complete.sqlite =================================================================== diff -u -rbe2039934e8fb442effc0150a1900f2175ec6a03 -r1c33828255f3af61e2255936f0fd80963bc21a52 Binary files differ Index: Riskeer/Integration/test/Riskeer.Integration.IO.Test/test-data/HydraulicBoundaryDatabaseImporter/hlcdWithScenarioInformationNoEntries/HLCD.sqlite =================================================================== diff -u -rbe2039934e8fb442effc0150a1900f2175ec6a03 -r1c33828255f3af61e2255936f0fd80963bc21a52 Binary files differ Index: Riskeer/Integration/test/Riskeer.Integration.IO.Test/test-data/HydraulicBoundaryDatabaseImporter/hlcdWithScenarioInformationNoEntries/complete.config.sqlite =================================================================== diff -u -rbe2039934e8fb442effc0150a1900f2175ec6a03 -r1c33828255f3af61e2255936f0fd80963bc21a52 Binary files differ Index: Riskeer/Integration/test/Riskeer.Integration.IO.Test/test-data/HydraulicBoundaryDatabaseImporter/hlcdWithScenarioInformationNoEntries/complete.sqlite =================================================================== diff -u -rbe2039934e8fb442effc0150a1900f2175ec6a03 -r1c33828255f3af61e2255936f0fd80963bc21a52 Binary files differ