示例#1
0
 public void testRoverStoresTakenPictures()
 {
     _storage.Store(ROVER_ID, new PictureData {
         Position = POSITION, Pictures = new Dictionary <string, string>()
     });
     _service.TakePhoto(ROVER_ID);
     assertRoverTookThePhotoForPosition(POSITION);
 }
示例#2
0
        public void testRoverMoves()
        {
            _storage.Store(PLATEAU_ID, new Plateau {
                Dimensions = "4,3"
            });
            _storage.Store(ROVER_ID, new Rover {
                Position = "1,1,N", PlateauId = PLATEAU_ID
            });

            _service.Move(ROVER_ID, "MRM");

            assertRoverIsInPosition("2,1,E");
        }