public void GetUpdateInfos_ReturnSupportedUpdateInfos()
        {
            using (var plugin = new StabilityPointStructuresPlugin())
            {
                // Call
                UpdateInfo[] updateInfo = plugin.GetUpdateInfos().ToArray();

                // Assert
                Assert.AreEqual(2, updateInfo.Length);
                Assert.IsTrue(updateInfo.Any(i => i.DataType == typeof(StabilityPointStructuresContext)));
                Assert.IsTrue(updateInfo.Any(i => i.DataType == typeof(StabilityPointStructuresFailureMechanismSectionsContext)));
            }
        }
 private static UpdateInfo GetUpdateInfo(StabilityPointStructuresPlugin plugin)
 {
     return(plugin.GetUpdateInfos().First(ii => ii.DataType == typeof(StabilityPointStructuresFailureMechanismSectionsContext)));
 }
Exemple #3
0
 public override void Setup()
 {
     plugin     = new StabilityPointStructuresPlugin();
     updateInfo = plugin.GetUpdateInfos().First(i => i.DataType == typeof(StabilityPointStructuresContext));
 }