Index: Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/PropertyInfos/StabilityStoneCoverWaveConditionsInputContextPropertyInfoTest.cs =================================================================== diff -u -re7e455ded8ce63d7d6694009d2b6d71d6e233bdf -r1a6b52d906627a8e50b6675c1bbdee644854b959 --- Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/PropertyInfos/StabilityStoneCoverWaveConditionsInputContextPropertyInfoTest.cs (.../StabilityStoneCoverWaveConditionsInputContextPropertyInfoTest.cs) (revision e7e455ded8ce63d7d6694009d2b6d71d6e233bdf) +++ Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/PropertyInfos/StabilityStoneCoverWaveConditionsInputContextPropertyInfoTest.cs (.../StabilityStoneCoverWaveConditionsInputContextPropertyInfoTest.cs) (revision 1a6b52d906627a8e50b6675c1bbdee644854b959) @@ -19,7 +19,6 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. -using System.Collections; using System.Linq; using Core.Common.Base.Data; using Core.Common.Gui.Plugin; @@ -54,7 +53,7 @@ } [Test] - [TestCaseSource(nameof(DifferentCategoryTypes))] + [TestCaseSource(typeof(AssessmentSectionHelper), nameof(AssessmentSectionHelper.GetAssessmentLevelConfigurationPerAssessmentSectionCategoryType))] public void CreateInstance_WithContextThatHasInputWithSpecificCategoryType_ExpectedProperties( IAssessmentSection assessmentSection, HydraulicBoundaryLocation hydraulicBoundaryLocation, @@ -95,44 +94,5 @@ { return plugin.GetPropertyInfos().First(pi => pi.DataType == typeof(StabilityStoneCoverWaveConditionsInputContext)); } - - 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"); - } } } \ No newline at end of file