public void NoExceptionIsTrownByRender() { AllocConsole(); var renderer = new ConsoleRenderer(); renderer.Render("Haha"); }
public void NoExceptionIsTrownByClearScreen() { AllocConsole(); var renderer = new ConsoleRenderer(); renderer.ClearScreen(); }
public void NoExceptionIsTrownByRenderBoard() { AllocConsole(); var renderer = new ConsoleRenderer(); var settings = new EasyBoardSettings(); var subscribers = new List<IBoardObserver>() { }; var board = new Board(settings, subscribers); var strategy = new StandardGameInitializationStrategy(new ContentFactory()); var newBoard = strategy.Initialize(board); renderer.RenderBoard(board, board.Cols, board.Rows); }
public void NoExceptionIsTrownBySetCursorVisibilityToTrue() { AllocConsole(); var renderer = new ConsoleRenderer(); renderer.SetCursor(true); }
public void NoExceptionIsTrownBySetCursor() { AllocConsole(); var renderer = new ConsoleRenderer(); renderer.SetCursor(0, 0); }
public void NoExceptionIsTrownByRenderWelcomeScreen() { AllocConsole(); var renderer = new ConsoleRenderer(); renderer.RenderWelcomeScreen("Hello"); }
public void NoExceptionIsTrownByRenderMenu() { AllocConsole(); var renderer = new ConsoleRenderer(); var gameModes = new List<IGameMode>(); gameModes.Add(new BeginnerMode()); renderer.RenderMenu(gameModes, 1, 1); }