Example #1
0
        public void GetImportInfos_ReturnsSupportedImportInfos()
        {
            // Setup
            using (var plugin = new PipingPlugin())
            {
                // Call
                ImportInfo[] importInfos = plugin.GetImportInfos().ToArray();

                // Assert
                Assert.AreEqual(3, importInfos.Length);
                Assert.IsTrue(importInfos.Any(i => i.DataType == typeof(PipingSurfaceLinesContext)));
                Assert.IsTrue(importInfos.Any(i => i.DataType == typeof(PipingStochasticSoilModelCollectionContext)));
                Assert.IsTrue(importInfos.Any(i => i.DataType == typeof(PipingCalculationGroupContext)));
            }
        }
Example #2
0
 public override void Setup()
 {
     plugin     = new PipingPlugin();
     importInfo = plugin.GetImportInfos().First(i => i.DataType == typeof(PipingSurfaceLinesContext));
 }
Example #3
0
 public override void Setup()
 {
     plugin     = new PipingPlugin();
     importInfo = plugin.GetImportInfos().First(i => i.DataType == typeof(PipingStochasticSoilModelCollectionContext));
 }
Example #4
0
 public void SetUp()
 {
     plugin     = new PipingPlugin();
     importInfo = plugin.GetImportInfos().First(i => i.DataType == typeof(PipingCalculationGroupContext));
 }