Beispiel #1
0
        public void ICrashIntoSomething(string commands, string statusString)
        {
            var terrain        = new Terrain(3, 3, new[] { new Point(1, 1) });
            var x              = new Position(0, terrain.Width);
            var y              = new Position(0, terrain.Height);
            var rover          = new Rover(x, y, FacingDirection.N);
            var movementSystem = new MovementSystem(terrain, rover);

            movementSystem.Process(commands);
            Assert.Equal(statusString, rover.ToStatusString());
        }