예제 #1
0
        public void GetPropertyInfos_ReturnsSupportedPropertyInfos()
        {
            // Setup
            using (var plugin = new DuneErosionPlugin())
            {
                // Call
                PropertyInfo[] propertyInfos = plugin.GetPropertyInfos().ToArray();

                // Assert
                Assert.AreEqual(4, propertyInfos.Length);

                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(HydraulicLoadsStateFailureMechanismContext),
                    typeof(HydraulicLoadsStateFailureMechanismProperties));
                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(RegistrationStateFailureMechanismContext),
                    typeof(RegistrationStateFailureMechanismProperties));
                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(DuneLocationCalculationsForUserDefinedTargetProbabilityContext),
                    typeof(DuneLocationCalculationsForUserDefinedTargetProbabilityProperties));
                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(DuneLocationCalculation),
                    typeof(DuneLocationCalculationProperties));
            }
        }
예제 #2
0
        public void Create_Always_ReturnsPropertyInfos()
        {
            // Call
            PropertyInfo[] propertyInfos = ChartPropertyInfoFactory.Create().ToArray();

            // Assert
            Assert.AreEqual(6, propertyInfos.Length);

            PluginTestHelper.AssertPropertyInfoDefined(
                propertyInfos, typeof(ChartDataCollection),
                typeof(ChartDataCollectionProperties));

            PluginTestHelper.AssertPropertyInfoDefined(
                propertyInfos, typeof(ChartLineData),
                typeof(ChartLineDataProperties));

            PluginTestHelper.AssertPropertyInfoDefined(
                propertyInfos, typeof(ChartAreaData),
                typeof(ChartAreaDataProperties));

            PluginTestHelper.AssertPropertyInfoDefined(
                propertyInfos, typeof(ChartMultipleAreaData),
                typeof(ChartMultipleAreaDataProperties));

            PluginTestHelper.AssertPropertyInfoDefined(
                propertyInfos, typeof(ChartMultipleLineData),
                typeof(ChartMultipleLineDataProperties));

            PluginTestHelper.AssertPropertyInfoDefined(
                propertyInfos, typeof(ChartPointData),
                typeof(ChartPointDataProperties));
        }
        public void GetPropertyInfos_ReturnsSupportedPropertyInfos()
        {
            // Setup
            using (var plugin = new StabilityStoneCoverPlugin())
            {
                // Call
                PropertyInfo[] propertyInfos = plugin.GetPropertyInfos().ToArray();

                // Assert
                Assert.AreEqual(4, propertyInfos.Length);

                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(HydraulicLoadsStateFailureMechanismContext),
                    typeof(HydraulicLoadsStateFailureMechanismProperties));
                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(RegistrationStateFailureMechanismContext),
                    typeof(RegistrationStateFailureMechanismProperties));
                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(StabilityStoneCoverWaveConditionsOutputContext),
                    typeof(StabilityStoneCoverWaveConditionsOutputProperties));
                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(StabilityStoneCoverWaveConditionsInputContext),
                    typeof(StabilityStoneCoverWaveConditionsInputContextProperties));
            }
        }
예제 #4
0
        public void Create_Always_ReturnsPropertyInfos()
        {
            // Call
            PropertyInfo[] propertyInfos = MapPropertyInfoFactory.Create().ToArray();

            // Assert
            Assert.AreEqual(4, propertyInfos.Length);

            PluginTestHelper.AssertPropertyInfoDefined(
                propertyInfos,
                typeof(MapDataCollectionContext),
                typeof(MapDataCollectionProperties));

            PluginTestHelper.AssertPropertyInfoDefined(
                propertyInfos,
                typeof(MapPointDataContext),
                typeof(MapPointDataProperties));

            PluginTestHelper.AssertPropertyInfoDefined(
                propertyInfos,
                typeof(MapLineDataContext),
                typeof(MapLineDataProperties));

            PluginTestHelper.AssertPropertyInfoDefined(
                propertyInfos,
                typeof(MapPolygonDataContext),
                typeof(MapPolygonDataProperties));
        }
        public void GetPropertyInfos_ReturnsSupportedPropertyInfos()
        {
            // Setup
            using (var plugin = new GrassCoverErosionInwardsPlugin())
            {
                // Call
                PropertyInfo[] propertyInfos = plugin.GetPropertyInfos().ToArray();

                // Assert
                Assert.AreEqual(9, propertyInfos.Length);

                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(CalculationsStateFailureMechanismContext),
                    typeof(CalculationsStateFailureMechanismProperties));

                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(RegistrationStateFailureMechanismContext),
                    typeof(RegistrationStateFailureMechanismProperties));

                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(DikeProfile),
                    typeof(DikeProfileProperties));

                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(GrassCoverErosionInwardsInputContext),
                    typeof(GrassCoverErosionInwardsInputContextProperties));

                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(GrassCoverErosionInwardsOutputContext),
                    typeof(GrassCoverErosionInwardsOutputProperties));

                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(DikeProfilesContext),
                    typeof(DikeProfileCollectionProperties));

                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(OvertoppingOutputContext),
                    typeof(OvertoppingOutputProperties));

                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(DikeHeightOutputContext),
                    typeof(DikeHeightOutputProperties));

                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(OvertoppingRateOutputContext),
                    typeof(OvertoppingRateOutputProperties));
            }
        }
예제 #6
0
        public void GetPropertyInfos_ReturnsSupportedPropertyInfos()
        {
            // Setup
            using (var plugin = new HeightStructuresPlugin())
            {
                // Call
                PropertyInfo[] propertyInfos = plugin.GetPropertyInfos().ToArray();

                // Assert
                Assert.AreEqual(5, propertyInfos.Length);

                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(CalculationsStateFailureMechanismContext),
                    typeof(CalculationsStateFailureMechanismProperties));

                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(RegistrationStateFailureMechanismContext),
                    typeof(RegistrationStateFailureMechanismProperties));

                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(HeightStructure),
                    typeof(HeightStructureProperties));

                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(HeightStructuresContext),
                    typeof(StructureCollectionProperties <HeightStructure>));

                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(HeightStructuresInputContext),
                    typeof(HeightStructuresInputContextProperties));
            }
        }
예제 #7
0
        public void GetPropertyInfos_ReturnsSupportedPropertyInfos()
        {
            // Setup
            using (var plugin = new PipingPlugin())
            {
                // Call
                PropertyInfo[] propertyInfos = plugin.GetPropertyInfos().ToArray();

                // Assert
                Assert.AreEqual(13, propertyInfos.Length);

                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(CalculationsStateFailureMechanismContext),
                    typeof(CalculationsStateFailureMechanismProperties));

                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(RegistrationStateFailureMechanismContext),
                    typeof(RegistrationStateFailureMechanismProperties));

                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(SemiProbabilisticPipingInputContext),
                    typeof(SemiProbabilisticPipingInputContextProperties));

                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(ProbabilisticPipingInputContext),
                    typeof(ProbabilisticPipingInputContextProperties));

                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(SemiProbabilisticPipingOutputContext),
                    typeof(SemiProbabilisticPipingOutputProperties));

                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(PipingSurfaceLinesContext),
                    typeof(PipingSurfaceLineCollectionProperties));

                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(PipingSurfaceLine),
                    typeof(PipingSurfaceLineProperties));

                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(PipingStochasticSoilModelCollectionContext),
                    typeof(PipingStochasticSoilModelCollectionProperties));

                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(PipingStochasticSoilModel),
                    typeof(PipingStochasticSoilModelProperties));

                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(PipingStochasticSoilProfile),
                    typeof(PipingStochasticSoilProfileProperties));

                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(PipingFailureMechanismSectionsContext),
                    typeof(FailureMechanismSectionsProbabilityAssessmentProperties));

                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(ProbabilisticPipingProfileSpecificOutputContext),
                    typeof(ProbabilisticPipingOutputProperties));

                PluginTestHelper.AssertPropertyInfoDefined(
                    propertyInfos,
                    typeof(ProbabilisticPipingSectionSpecificOutputContext),
                    typeof(ProbabilisticPipingOutputProperties));
            }
        }