public void TestTurtleCannotMoveOutOfBoard()
        {
            var settings = new string[6];

            settings[0] = "5 4";
            settings[1] = "1,1 1,3 3,3";
            settings[2] = "4 2";
            settings[3] = "0 1 N";
            settings[4] = "M M M M M";
            var testProgram           = new ConfigurationsReader(settings);
            IEnumerable <Moves> moves = testProgram.Games.
                                        ElementAt(0).Split(' ').Select(s => Enum.Parse(typeof(Moves), s)).Cast <Moves>().ToList();

            Assert.Throws <Exception>(() => ExecuteGame.Execute(testProgram.Board, testProgram.Turtle, moves));
        }
        public void TestStillInDangerRun()
        {
            var settings = new string[6];

            settings[0] = "5 4";
            settings[1] = "1,1 1,3 3,3";
            settings[2] = "4 2";
            settings[3] = "0 1 N";
            settings[4] = "M R M M M";
            var testProgram           = new ConfigurationsReader(settings);
            IEnumerable <Moves> moves = testProgram.Games.
                                        ElementAt(0).Split(' ').Select(s => Enum.Parse(typeof(Moves), s)).Cast <Moves>().ToList();

            Assert.AreEqual("Still in danger!", ExecuteGame.Execute(testProgram.Board, testProgram.Turtle, moves));
        }