public void TestRotateLeft_DoubleLeftRotation() { var robot = new ToyRobot { Direction = Direction.East, Position = new Position(0, 0) }; robot.RotateLeft(); robot.RotateLeft(); Assert.AreEqual(Direction.West, robot.Direction); }
public void TestRotate_LeftAndRight() { var robot = new ToyRobot { Direction = Direction.North, Position = new Position(0, 0) }; robot.RotateLeft(); robot.RotateRight(); Assert.AreEqual(Direction.North, robot.Direction); }