示例#1
0
        public void TestInitialize()
        {
            mockGrid = new Mock<IGrid>();
            startingPosition = new Coordinate(1, 2);
            startingRotation = DirectionRotations.North;

            rover = new Rover(startingPosition, startingRotation, mockGrid.Object);
        }
示例#2
0
        public void TurnRightDecreasesRotationByNinety()
        {
            rover = new Rover(startingPosition, DirectionRotations.North, mockGrid.Object);
            rover.TurnRight();

            Assert.AreEqual(DirectionRotations.East, rover.Rotation);
        }