Ejemplo n.º 1
0
        public void ShouldReturnExceptionOutOfCoordinates(string input)
        {
            var navigationInput = new NavigationInputs(input);
            var movingAction    = new MovingAction(navigationInput);

            Assert.Throws <CustomException>(() => movingAction.ExecuteMoving());
        }
Ejemplo n.º 2
0
        public void ShouldCorrectFinalPosition(string input, string correctResult)
        {
            var navigationInput = new NavigationInputs(input);
            var movingAction    = new MovingAction(navigationInput);

            movingAction.ExecuteMoving();
            Assert.True(movingAction.FinalDirectAndCoordinates.First().Equals(correctResult));
        }