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))); } }
private static UpdateInfo GetUpdateInfo(ClosingStructuresPlugin plugin) { return(plugin.GetUpdateInfos().First(ii => ii.DataType == typeof(ClosingStructuresFailureMechanismSectionsContext))); }
public override void Setup() { plugin = new ClosingStructuresPlugin(); updateInfo = plugin.GetUpdateInfos().First(i => i.DataType == typeof(ClosingStructuresContext)); }