示例#1
0
        public void MoveForward_Should_Move_Forward_Method_When_Expected_Value(int x, int y, int newX, int newY)
        {
            //Arrange
            var roverPositionModel = new RoverPositionModel
            {
                X         = x,
                Y         = y,
                Direction = Direction.East
            };
            var eastStrategy = new NorthStrategy();
            //Act
            var result = eastStrategy.MoveForward(roverPositionModel);

            //Assert
            result.X.Should().Be(newX);
            result.Y.Should().Be(newY);
        }