public void ShouldReturnCorrectlyItem() { var inputTable = new bool[,] { { false, true, false }, { true, false, false } }; var table = new Table(inputTable); Assert.AreEqual(false, table.GetItem(0, 0)); Assert.AreEqual(true, table.GetItem(1, 0)); Assert.AreEqual(false, table.GetItem(2, 0)); Assert.AreEqual(true, table.GetItem(0, 1)); Assert.AreEqual(false, table.GetItem(1, 1)); Assert.AreEqual(false, table.GetItem(2, 1)); }
public void Example2() { var inputTable = new bool[,] { {true, true, false}, {true, true, true} }; var table = new Table(inputTable); table.NextStep(); Assert.AreEqual(false, table.GetItem(1, 0)); Assert.AreEqual(false, table.GetItem(1, 1)); }