public void MoveNodeUpFromTopDoesNotMoveNode()
        {
            MoveNodeBeforeCommand cmd = new MoveNodeBeforeCommand(serviceProvider);
            cmd.Execute(nodeA);

            Assert.AreSame(node.FirstNode, nodeA);
        }
        public void MoveNodeUpFromBottomPutsNodeInMiddleAndShiftsMiddleNodeToBottom()
        {
            MoveNodeBeforeCommand cmd = new MoveNodeBeforeCommand(serviceProvider);
            cmd.Execute(nodeC);

            Assert.AreSame(node.LastNode, nodeB);
        }
        public void MoveNodeUpFromMiddleMovesNodeToTopAndTopToMiddle()
        {
            MoveNodeBeforeCommand cmd = new MoveNodeBeforeCommand(serviceProvider);
            cmd.Execute(nodeB);

            Assert.AreSame(node.FirstNode, nodeB);
        }
Example #4
0
        public void MoveNodeUpFromBottomPutsNodeInMiddleAndShitsMiddleNodeToBottom()
        {
            MoveNodeBeforeCommand cmd = new MoveNodeBeforeCommand(Host, nodeC, nodeB);

            cmd.Execute(GeneratedApplicationNode);
            Assert.AreSame(GeneratedApplicationNode.LastNode, nodeB);
        }
Example #5
0
        public void MoveNodeUpFromTopDoesNotMoveNode()
        {
            MoveNodeBeforeCommand cmd = new MoveNodeBeforeCommand(Host, nodeA, nodeA);

            cmd.Execute(GeneratedApplicationNode);
            Assert.AreSame(GeneratedApplicationNode.FirstNode, nodeA);
        }
Example #6
0
        public void MoveNodeUpFromMiddleMovesNodeToTopAndTopToMiddle()
        {
            MoveNodeBeforeCommand cmd = new MoveNodeBeforeCommand(Host, nodeB, nodeA);

            cmd.Execute(GeneratedApplicationNode);
            Assert.AreSame(GeneratedApplicationNode.FirstNode, nodeB);
        }
        public void MoveNodeUpFromBottomPutsNodeInMiddleAndShiftsMiddleNodeToBottom()
        {
            MoveNodeBeforeCommand cmd = new MoveNodeBeforeCommand(serviceProvider);

            cmd.Execute(nodeC);

            Assert.AreSame(node.LastNode, nodeB);
        }
        public void MoveNodeUpFromTopDoesNotMoveNode()
        {
            MoveNodeBeforeCommand cmd = new MoveNodeBeforeCommand(serviceProvider);

            cmd.Execute(nodeA);

            Assert.AreSame(node.FirstNode, nodeA);
        }
        public void MoveNodeUpFromMiddleMovesNodeToTopAndTopToMiddle()
        {
            MoveNodeBeforeCommand cmd = new MoveNodeBeforeCommand(serviceProvider);

            cmd.Execute(nodeB);

            Assert.AreSame(node.FirstNode, nodeB);
        }
 public void MoveNodeUpFromTopDoesNotMoveNode()
 {
     MoveNodeBeforeCommand cmd = new MoveNodeBeforeCommand(Host, nodeA, nodeA);
     cmd.Execute(GeneratedApplicationNode);
     Assert.AreSame(GeneratedApplicationNode.FirstNode, nodeA);
 }
 public void MoveNodeUpFromMiddleMovesNodeToTopAndTopToMiddle()
 {
     MoveNodeBeforeCommand cmd = new MoveNodeBeforeCommand(Host, nodeB, nodeA);
     cmd.Execute(GeneratedApplicationNode);
     Assert.AreSame(GeneratedApplicationNode.FirstNode, nodeB);
 }
 public void MoveNodeUpFromBottomPutsNodeInMiddleAndShitsMiddleNodeToBottom()
 {
     MoveNodeBeforeCommand cmd = new MoveNodeBeforeCommand(Host, nodeC, nodeB);
     cmd.Execute(GeneratedApplicationNode);
     Assert.AreSame(GeneratedApplicationNode.LastNode, nodeB);
 }