public void CreatePlayerTest()
        {
            LabyrinthFactory factory = new LabyrinthFactory();
            IPlayer player = factory.CreatePlayer(5, 4);

            bool isRightPlayer = false;

            if (player.XPosition == 5 && player.YPosition == 4)
            {
                isRightPlayer = true;
            }

            Assert.IsTrue(isRightPlayer);
        }
 public void TestMemento()
 {
     ILabyrinthFactory factory = new LabyrinthFactory();
     IPlayfield playfield = factory.CreatePlayfield();
     IPlayer player= factory.CreatePlayer();
     IGameDialog dialogs = factory.CreateDialogs();
     IScoreboard scoreboard =  factory.CreateScoreboard();
     int numberOfMoves = 5;
     Memento testMemento = new Memento(factory, playfield, player, dialogs, scoreboard, numberOfMoves);
 }
 public void TestLoadMememntoMethod()
 {
     ILabyrinthFactory factory = new LabyrinthFactory();
     IPlayfield playfield = factory.CreatePlayfield();
     IPlayer player = factory.CreatePlayer();
     IGameDialog dialogs = factory.CreateDialogs();
     IScoreboard scoreboard = factory.CreateScoreboard();
     int numberOfMoves = 5;
     Memento testMemento = new Memento(factory, playfield, player, dialogs, scoreboard, numberOfMoves);
     Labyrinth.Engine.LabyrinthEngine.Instance.LoadMemento(testMemento);
 }