Namespace: GameOfLife.Tests
Assembly: GameOfLife.Tests (in GameOfLife.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: GameOfLife.Tests (in GameOfLife.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test] public void GridToString() { var cellsToVisualize = new[,] { { 2, 0 }, { 1, 1 }, { 3, 1 }, { 0, 2 }, { 2, 2 }, { 4, 2 }, { 2, 3 }, { 2, 4 } }; gameOfLife.BatchReviveCells(cellsToVisualize); const string ExpectedVisualGrid = @"--#-- -#-#- #-#-# --#-- --#--"; Assert.AreEqual(ExpectedVisualGrid, gameOfLife.ToString()); } }
See Also