Пример #1
0
        public void GetImportInfos_ReturnsSupportedImportInfos()
        {
            // Setup
            using (var plugin = new HeightStructuresPlugin())
            {
                // Call
                ImportInfo[] importInfos = plugin.GetImportInfos().ToArray();

                // Assert
                Assert.AreEqual(2, importInfos.Length);
                Assert.IsTrue(importInfos.Any(i => i.DataType == typeof(HeightStructuresContext)));
                Assert.IsTrue(importInfos.Any(tni => tni.DataType == typeof(HeightStructuresCalculationGroupContext)));
            }
        }
 private static ImportInfo GetImportInfo(HeightStructuresPlugin plugin)
 {
     return(plugin.GetImportInfos().First(ii => ii.DataType == typeof(HeightStructuresContext)));
 }
 private static ImportInfo GetImportInfo(HeightStructuresPlugin plugin)
 {
     return(plugin.GetImportInfos().First(ei => ei.DataType == typeof(HeightStructuresCalculationGroupContext)));
 }