Index: Riskeer/Integration/test/Riskeer.Integration.Service.Test/Comparers/AssessmentSectionMergeComparerTest.cs =================================================================== diff -u -r429445948d1533337f3217274d7fcc0073928896 -rb11b7b1c77503fc1c243132795ff7a7b4fede41e --- Riskeer/Integration/test/Riskeer.Integration.Service.Test/Comparers/AssessmentSectionMergeComparerTest.cs (.../AssessmentSectionMergeComparerTest.cs) (revision 429445948d1533337f3217274d7fcc0073928896) +++ Riskeer/Integration/test/Riskeer.Integration.Service.Test/Comparers/AssessmentSectionMergeComparerTest.cs (.../AssessmentSectionMergeComparerTest.cs) (revision b11b7b1c77503fc1c243132795ff7a7b4fede41e) @@ -113,23 +113,17 @@ } [Test] - [TestCase(true)] - [TestCase(false)] - public void Compare_AssessmentSectionWithEquivalentHydraulicBoundaryLocationConfigurationSettings_ReturnsTrue(bool hydraulicLocationConfigurationSettingsSet) + public void Compare_AssessmentSectionWithEquivalentHydraulicBoundaryLocationConfigurationSettings_ReturnsTrue() { // Setup AssessmentSection assessmentSection = CreateAssessmentSection(); + SetHydraulicLocationConfigurationValues(assessmentSection.HydraulicBoundaryDatabase.HydraulicLocationConfigurationSettings, + "FilePath1"); + AssessmentSection otherAssessmentSection = CreateAssessmentSection(); + SetHydraulicLocationConfigurationValues(otherAssessmentSection.HydraulicBoundaryDatabase.HydraulicLocationConfigurationSettings, + "FilePath2"); - if (hydraulicLocationConfigurationSettingsSet) - { - SetHydraulicLocationConfigurationValues(assessmentSection.HydraulicBoundaryDatabase.HydraulicLocationConfigurationSettings, - "FilePath1"); - - SetHydraulicLocationConfigurationValues(otherAssessmentSection.HydraulicBoundaryDatabase.HydraulicLocationConfigurationSettings, - "FilePath2"); - } - var comparer = new AssessmentSectionMergeComparer(); // Call @@ -140,8 +134,8 @@ } [Test] - [TestCaseSource(nameof(GetUnequivalentAssessmentSectionWithHydraulicLocationConfigurationSettingsTestCases))] - public void Compare_AssessmentSectionNotEquivalentWitHydraulicBoundaryLocationConfigurationSettings_ReturnsFalse(AssessmentSection otherAssessmentSection) + [TestCaseSource(nameof(GetAssessmentSectionWithNotEquivalentHydraulicLocationConfigurationSettingsTestCases))] + public void Compare_AssessmentSectionWithNotEquivalentHydraulicBoundaryLocationConfigurationSettings_ReturnsFalse(AssessmentSection otherAssessmentSection) { // Setup AssessmentSection assessmentSection = CreateAssessmentSection(); @@ -228,7 +222,7 @@ "Composition"); } - private static IEnumerable GetUnequivalentAssessmentSectionWithHydraulicLocationConfigurationSettingsTestCases() + private static IEnumerable GetAssessmentSectionWithNotEquivalentHydraulicLocationConfigurationSettingsTestCases() { foreach (ChangePropertyData changeSingleDataProperty in ChangeSingleDataOfHydraulicLocationConfigurationSettings()) {