public void PushScreenTest() { GameScreen screen = new GameScreen(); manager.PushScreen(screen); Assert.AreEqual(screen, manager.Screens.Peek()); }
public void RestartTest() { ScreenManager manager = new ScreenManager(); GameScreen game = new GameScreen(); MenuScreen menu = new MenuScreen(); menu.Manager = manager; manager.Screens.Push(game); manager.Screens.Push(menu); menu.Restart(); Assert.AreNotEqual(game, manager.Screens.Peek()); }