コード例 #1
0
        public void AddAttributeDialogCancelled()
        {
            treeView.SelectedNode = bodyTreeNode;
            treeView.SelectedNode = bodyTreeNode;
            treeViewContainer.AddAttributeDialogAttributeNamesReturned.Add("class");
            treeViewContainer.AddAttributeDialogResult = DialogResult.Cancel;
            AddAttributeCommand command = new AddAttributeCommand();

            string[] attributes = treeViewContainer.SelectNewAttributes(new string[] { "a" });
            Assert.AreEqual(0, attributes.Length);
        }