コード例 #1
0
        public void GetImportInfos_ReturnsSupportedImportInfos()
        {
            // Setup
            using (var plugin = new MacroStabilityInwardsPlugin())
            {
                // Call
                ImportInfo[] importInfos = plugin.GetImportInfos().ToArray();

                // Assert
                Assert.AreEqual(3, importInfos.Length);
                Assert.IsTrue(importInfos.Any(i => i.DataType == typeof(MacroStabilityInwardsSurfaceLinesContext)));
                Assert.IsTrue(importInfos.Any(i => i.DataType == typeof(MacroStabilityInwardsStochasticSoilModelCollectionContext)));
                Assert.IsTrue(importInfos.Any(i => i.DataType == typeof(MacroStabilityInwardsCalculationGroupContext)));
            }
        }
コード例 #2
0
 public override void Setup()
 {
     plugin     = new MacroStabilityInwardsPlugin();
     importInfo = plugin.GetImportInfos().First(i => i.DataType == typeof(MacroStabilityInwardsStochasticSoilModelCollectionContext));
 }
コード例 #3
0
 public void SetUp()
 {
     plugin     = new MacroStabilityInwardsPlugin();
     importInfo = plugin.GetImportInfos().First(i => i.DataType == typeof(MacroStabilityInwardsCalculationGroupContext));
 }
コード例 #4
0
 public override void Setup()
 {
     plugin     = new MacroStabilityInwardsPlugin();
     importInfo = plugin.GetImportInfos().First(i => i.DataType == typeof(MacroStabilityInwardsSurfaceLinesContext));
 }