Пример #1
0
        public void Go_Should_Kill_Rover_If_It_Goes_Off_South_Edge_Plateau()
        {
            sut = new Rover(10, 0, "S", "M", 10, 10);

            sut.Go();
            string result = sut.CurrentPosition();

            Assert.AreEqual("DEAD", result);
        }
Пример #2
0
        public void Go_Should_Not_Throw_When_Lower_Case_Input_Given()
        {
            sut = new Rover(5, 5, "n", "LrM", 10, 10);

            sut.Go();
        }
Пример #3
0
        public void Rover_Stays_Dead_Even_If_Instructions_Bring_It_Back_On_To_Plateau()
        {
            sut = new Rover(10, 10, "N", "MLLM", 10, 10);

            sut.Go();
            string result = sut.CurrentPosition();

            Assert.AreEqual("DEAD", result);
        }