public void StillLife4() { bool[,] StillLife4 = new bool[,] { { true, true, false }, { true, false, true }, { false, true, false } }; Map board = new Map(StillLife4); board.Tick(); CollectionAssert.AreEqual(StillLife4, board.GetBoard()); }
public void Oscillator3() { bool[,] oscillator3 = new bool[,] { { true, true, false, false }, { true, true, false, false }, { false, false, true, true }, { false, false, true, true } }; Map board = new Map(oscillator3); board.Tick(); bool[,] expected = new bool[,] { { true, true, false, false }, { true, false, false, false }, { false, false, false, true }, { false, false, true, true } }; CollectionAssert.AreEqual(expected, board.GetBoard()); }