Exemplo n.º 1
0
        public void WhenToldToMoveThenEndsUpInExpectedPosition()
        {
            var robot = new Robot(this.validInstructions, this.validStartPosition);

            robot.Traverse(this.grid);

            var expectedPosition = new Position(1, 2, Orientation.E);
            Assert.AreEqual(expectedPosition, robot.FinishPosition);
            Assert.IsFalse(robot.Lost);
        }