/// <summary>
 ///     Handles the drop event
 /// </summary>
 /// <param name="sourceNode"></param>
 public override void AcceptDrop(BaseTreeNode sourceNode)
 {
     base.AcceptDrop(sourceNode);
     if (sourceNode is ActionTreeNode)
     {
         ActionTreeNode action = sourceNode as ActionTreeNode;
         action.Delete();
         Item.appendActions(action.Item);
     }
 }
        /// <summary>
        ///     Handles the drop event
        /// </summary>
        /// <param name="sourceNode"></param>
        public override void AcceptDrop(BaseTreeNode sourceNode)
        {
            base.AcceptDrop(sourceNode);

            ActionTreeNode action = sourceNode as ActionTreeNode;

            if (action != null)
            {
                action.Delete();
                Item.appendActions(action.Item);
            }

            ExpectationTreeNode expectation = sourceNode as ExpectationTreeNode;

            if (expectation != null)
            {
                expectation.Delete();
                Item.appendExpectations(expectation.Item);
            }
        }