예제 #1
0
        public void GetUpdateInfos_ReturnSupportedUpdateInfos()
        {
            using (var plugin = new HeightStructuresPlugin())
            {
                // Call
                UpdateInfo[] updateInfo = plugin.GetUpdateInfos().ToArray();

                // Assert
                Assert.AreEqual(2, updateInfo.Length);
                Assert.IsTrue(updateInfo.Any(i => i.DataType == typeof(HeightStructuresContext)));
                Assert.IsTrue(updateInfo.Any(i => i.DataType == typeof(HeightStructuresFailureMechanismSectionsContext)));
            }
        }
예제 #2
0
 public override void Setup()
 {
     plugin     = new HeightStructuresPlugin();
     updateInfo = plugin.GetUpdateInfos().First(i => i.DataType == typeof(HeightStructuresContext));
 }
 private static UpdateInfo GetUpdateInfo(HeightStructuresPlugin plugin)
 {
     return(plugin.GetUpdateInfos().First(ii => ii.DataType == typeof(HeightStructuresFailureMechanismSectionsContext)));
 }