public void Test_Wrong_Exit_Point()
        {
            List <Library.Action> actions = new List <Library.Action>()
            {
                Library.Action.Move,
                Library.Action.Rotate,
                Library.Action.Move,
                Library.Action.Move,
                Library.Action.Move,
                Library.Action.Move,
                Library.Action.Rotate,
                Library.Action.Move,
                Library.Action.Move
            };

            try
            {
                var setup = new SetupGame(config, actions);
                setup.ValidateBoard();
            }
            catch (Exception e)
            {
                Assert.True(true);
            }
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            ReadFiles();

            try
            {
                setup = new SetupGame(Conf, Actions);
                play  = new PlayGame(Conf, Actions);

                Conf.Board = setup.ValidateBoard();
                PlayGame();
            }
            catch (Exception e)
            {
                Console.ForegroundColor = ConsoleColor.DarkRed;
                Console.WriteLine(e.Message);
                Console.ResetColor();
                Console.ReadKey();
            }
        }