예제 #1
0
            public void add_rover_to_plateau_get_last_added()
            {
                var plateau = new Plate();

                plateau.SetSize(5, 5);

                const CompassPoints direction = CompassPoints.E;
                var roverPosition             = new CoordinatesPoint(1, 2);
                var rover = new Rover(roverPosition, direction);

                plateau.AddRover(rover);
                var lastRover = plateau.GetLastRover();

                Assert.AreEqual(rover, lastRover);
            }