Пример #1
0
        public void SelectionButtonShouldBeDisabledAfterOpeningNewDocument()
        {
            string filePath = Path.Combine(workingDirectory, @".\Bugs\MAGN_7251.dyn");
            string testPath = Path.GetFullPath(filePath);

            ViewModel.OpenCommand.Execute(testPath);
            AssertNoDummyNodes();
            RunCurrentModel();

            var node = AllNodes.OfType <DSModelElementSelection>().ElementAt(0);

            node.RevitDynamoModel = Model as RevitDynamoModel;
            Assert.IsTrue(node.CanSelect);

            string newRfaFilePath = Path.Combine(workingDirectory, "modelLines.rfa");

            DocumentManager.Instance.CurrentUIApplication.OpenAndActivateDocument(newRfaFilePath);
            node = AllNodes.OfType <DSModelElementSelection>().ElementAt(0);
            Assert.IsFalse(node.CanSelect);
        }
Пример #2
0
 public List <InputNode> GetInputs()
 {
     return(AllNodes.OfType <InputNode>().ToList());
 }