public void GetPropertyInfos_ReturnsSupportedPropertyInfos() { // Setup using (var plugin = new WaveImpactAsphaltCoverPlugin()) { // 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(WaveImpactAsphaltCoverWaveConditionsOutput), typeof(WaveImpactAsphaltCoverWaveConditionsOutputProperties)); PluginTestHelper.AssertPropertyInfoDefined( propertyInfos, typeof(WaveImpactAsphaltCoverWaveConditionsInputContext), typeof(WaveImpactAsphaltCoverWaveConditionsInputContextProperties)); } }
private static PropertyInfo GetInfo(WaveImpactAsphaltCoverPlugin plugin) { return(plugin.GetPropertyInfos().First(pi => pi.DataType == typeof(WaveImpactAsphaltCoverFailureMechanismContext))); }
private static PropertyInfo GetInfo(WaveImpactAsphaltCoverPlugin plugin) { return(plugin.GetPropertyInfos().First(pi => pi.DataType == typeof(WaveImpactAsphaltCoverWaveConditionsInputContext))); }