예제 #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 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);
        }
예제 #3
0
        public void Rover_Can_Be_At_Very_Edge_Of_Plateau()
        {
            sut = new Rover(10, 10, "N", "M", 10, 10);

            string result = sut.CurrentPosition();

            Assert.AreEqual("10 10 N", result);
        }