Exemplo n.º 1
0
        /// <summary>
        /// Creates a new test case (e.g. feature + test case)
        /// </summary>
        /// <param name="testCase"></param>
        /// <returns></returns>
        public TestCaseTreeNode createTestCase(DataDictionary.Tests.TestCase testCase)
        {
            TestCaseTreeNode retVal = new TestCaseTreeNode(testCase);

            Item.appendTestCases(testCase);
            Nodes.Add(retVal);

            return(retVal);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Handles the drop event
        /// </summary>
        /// <param name="SourceNode"></param>
        public override void AcceptDrop(BaseTreeNode SourceNode)
        {
            base.AcceptDrop(SourceNode);
            if (SourceNode is TestCaseTreeNode)
            {
                TestCaseTreeNode testCase = SourceNode as TestCaseTreeNode;
                testCase.Delete();

                createTestCase(testCase.Item);
            }
        }
Exemplo n.º 3
0
        /// <summary>
        ///     Handles the drop event
        /// </summary>
        /// <param name="sourceNode"></param>
        public override void AcceptDrop(BaseTreeNode sourceNode)
        {
            base.AcceptDrop(sourceNode);
            if (sourceNode is TestCaseTreeNode)
            {
                TestCaseTreeNode testCase = sourceNode as TestCaseTreeNode;
                testCase.Delete();

                Item.appendTestCases(testCase.Item);
            }
        }