Пример #1
0
        public void East_MoveFromCurrentPosition_ReturnsNewCoordinate_WithXMovedForward(
            int currentX, int currentY, int newX)
        {
            Coordinates currentPosition  = new Coordinates(currentX, currentY);
            IDirection  currentDirection = new East();
            Coordinates newCoordinates   = currentDirection.MoveFrom(currentPosition);

            Assert.AreEqual(newCoordinates.XCoordinate, newX);
            Assert.AreEqual(newCoordinates.YCoordinate, currentY);
        }