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); }
public void MoveNodeUpFromBottomPutsNodeInMiddleAndShitsMiddleNodeToBottom() { MoveNodeBeforeCommand cmd = new MoveNodeBeforeCommand(Host, nodeC, nodeB); cmd.Execute(GeneratedApplicationNode); Assert.AreSame(GeneratedApplicationNode.LastNode, 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); }