Beispiel #1
0
 public void TestRightTurn()
 {
     var testComModule = new ComModule();
     var mockRover = new MockRover(testComModule);
     testComModule.ProcessMessage("R");
     const string expectedOutput = "I turned to Right";
     Assert.AreEqual(mockRover.Output, expectedOutput);
 }
Beispiel #2
0
        public void TestMove()
        {
            var testComModule = new ComModule();
            var mockRover = new MockRover(testComModule);
            testComModule.ProcessMessage("M");
            const string expectedOutput = "I Moved";
            Assert.AreEqual(mockRover.Output, expectedOutput);

        }