Exemplo n.º 1
0
        public void WalkThePathOfHappinessWithBoosterActivated()
        {
            var roverBooster = new RoverBooster(new RoverBase());
            var position     = roverBooster.Execute("RMMLMMRMRMRMM");

            Assert.Equal("2:2:W", position.ToString());
        }
Exemplo n.º 2
0
        public void MoveTwiceUsingRoverBoosters()
        {
            var boostedRover = new RoverBooster(new RoverBase());
            var position     = boostedRover.Execute("M");

            Assert.Equal("0:2:N", position.ToString());
        }