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

                // Assert
                Assert.AreEqual(2, updateInfo.Length);
                Assert.IsTrue(updateInfo.Any(i => i.DataType == typeof(ClosingStructuresContext)));
                Assert.IsTrue(updateInfo.Any(i => i.DataType == typeof(ClosingStructuresFailureMechanismSectionsContext)));
            }
        }
Пример #2
0
 private static UpdateInfo GetUpdateInfo(ClosingStructuresPlugin plugin)
 {
     return(plugin.GetUpdateInfos().First(ii => ii.DataType == typeof(ClosingStructuresFailureMechanismSectionsContext)));
 }
Пример #3
0
 public override void Setup()
 {
     plugin     = new ClosingStructuresPlugin();
     updateInfo = plugin.GetUpdateInfos().First(i => i.DataType == typeof(ClosingStructuresContext));
 }