public void GridCtor_ReadPastEnd() { InputGrid <bool> myGrid = new InputGrid <bool>(dataGrid); for (uint row = 1; row <= dimensions.Rows; ++row) { for (uint col = 1; col <= dimensions.Columns; ++col) { Assert.AreEqual(data[row - 1, col - 1], myGrid.ReadValue()); } } myGrid.ReadValue(); }
public void GridCtor_ReadValue() { for (uint row = 1; row <= dimensions.Rows; ++row) { for (uint col = 1; col <= dimensions.Columns; ++col) { Assert.AreEqual(data[row - 1, col - 1], grid.ReadValue()); } } }
public void GridCtor_ReadPastEnd() { InputGrid<bool> myGrid = new InputGrid<bool>(dataGrid); for (uint row = 1; row <= dimensions.Rows; ++row) for (uint col = 1; col <= dimensions.Columns; ++col) Assert.AreEqual(data[row-1, col-1], myGrid.ReadValue()); myGrid.ReadValue(); }