Index: Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/ViewInfos/WaveImpactAsphaltCoverWaveConditionsInputViewInfoTest.cs =================================================================== diff -u -rd6316e6823d8fe43a41b303d1b75c8323d7a4272 -r1a6b52d906627a8e50b6675c1bbdee644854b959 --- Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/ViewInfos/WaveImpactAsphaltCoverWaveConditionsInputViewInfoTest.cs (.../WaveImpactAsphaltCoverWaveConditionsInputViewInfoTest.cs) (revision d6316e6823d8fe43a41b303d1b75c8323d7a4272) +++ Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/ViewInfos/WaveImpactAsphaltCoverWaveConditionsInputViewInfoTest.cs (.../WaveImpactAsphaltCoverWaveConditionsInputViewInfoTest.cs) (revision 1a6b52d906627a8e50b6675c1bbdee644854b959) @@ -138,7 +138,7 @@ } [Test] - [TestCaseSource(nameof(DifferentCategoryTypes))] + [TestCaseSource(typeof(AssessmentSectionHelper), nameof(AssessmentSectionHelper.GetAssessmentLevelConfigurationPerAssessmentSectionCategoryType))] public void CreateInstance_WithContextThatHasInputWithSpecificCategoryType_ReturnViewWithCorrespondingAssessmentLevel( IAssessmentSection assessmentSection, HydraulicBoundaryLocation hydraulicBoundaryLocation, @@ -171,45 +171,6 @@ Assert.AreEqual(expectedAssessmentLevel, designWaterLevelChartData.Points.First().Y); } - private static IEnumerable DifferentCategoryTypes() - { - var assessmentSection = new AssessmentSectionStub(); - var hydraulicBoundaryLocation = new TestHydraulicBoundaryLocation(); - - assessmentSection.SetHydraulicBoundaryLocationCalculations(new[] - { - hydraulicBoundaryLocation - }, true); - - yield return new TestCaseData( - assessmentSection, - hydraulicBoundaryLocation, - AssessmentSectionCategoryType.FactorizedSignalingNorm, - assessmentSection.WaterLevelCalculationsForFactorizedSignalingNorm.ElementAt(0).Output.Result - ).SetName("FactorizedSignalingNorm"); - - yield return new TestCaseData( - assessmentSection, - hydraulicBoundaryLocation, - AssessmentSectionCategoryType.SignalingNorm, - assessmentSection.WaterLevelCalculationsForSignalingNorm.ElementAt(0).Output.Result - ).SetName("SignalingNorm"); - - yield return new TestCaseData( - assessmentSection, - hydraulicBoundaryLocation, - AssessmentSectionCategoryType.LowerLimitNorm, - assessmentSection.WaterLevelCalculationsForLowerLimitNorm.ElementAt(0).Output.Result - ).SetName("LowerLimitNorm"); - - yield return new TestCaseData( - assessmentSection, - hydraulicBoundaryLocation, - AssessmentSectionCategoryType.FactorizedLowerLimitNorm, - assessmentSection.WaterLevelCalculationsForFactorizedLowerLimitNorm.ElementAt(0).Output.Result - ).SetName("FactorizedLowerLimitNorm"); - } - #region ShouldCloseViewWithCalculationDataTester protected override bool ShouldCloseMethod(IView view, object o)