public void GetTreeNodeInfos_ReturnsSupportedTreeNodeInfos()
        {
            // Setup
            using (var plugin = new GrassCoverErosionInwardsPlugin())
            {
                // Call
                TreeNodeInfo[] treeNodeInfos = plugin.GetTreeNodeInfos().ToArray();

                // Assert
                Assert.AreEqual(12, treeNodeInfos.Length);
                Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(CalculationsStateFailureMechanismContext)));
                Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(RegistrationStateFailureMechanismContext)));
                Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(DikeProfilesContext)));
                Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(GrassCoverErosionInwardsCalculationGroupContext)));
                Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(GrassCoverErosionInwardsCalculationScenarioContext)));
                Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(GrassCoverErosionInwardsScenariosContext)));
                Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(GrassCoverErosionInwardsFailureMechanismSectionResultContext)));
                Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(GrassCoverErosionInwardsInputContext)));
                Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(GrassCoverErosionInwardsOutputContext)));
                Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(OvertoppingOutputContext)));
                Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(DikeHeightOutputContext)));
                Assert.IsTrue(treeNodeInfos.Any(tni => tni.TagType == typeof(OvertoppingRateOutputContext)));
            }
        }
Example #2
0
 public void SetUp()
 {
     mocks  = new MockRepository();
     plugin = new GrassCoverErosionInwardsPlugin();
     info   = plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(DikeHeightOutputContext));
 }
Example #3
0
 public void Setup()
 {
     plugin = new GrassCoverErosionInwardsPlugin();
     info   = plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(GrassCoverErosionInwardsFailureMechanismContext));
 }
 public void SetUp()
 {
     plugin = new GrassCoverErosionInwardsPlugin();
     info   = plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(OvertoppingOutputContext));
 }
Example #5
0
 public override void Setup()
 {
     mocksRepository = new MockRepository();
     plugin          = new GrassCoverErosionInwardsPlugin();
     info            = plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(GrassCoverErosionInwardsFailureMechanismContext));
 }
 public void SetUp()
 {
     plugin = new GrassCoverErosionInwardsPlugin();
     info   = plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(DikeProfilesContext));
 }