public void Next_IteratesThroughFirstColumn_IteratesThroughPuzzle(int grid, int[] gridValues) { _iterator = new SubGridIterator(_puzzle, grid); foreach (int value in gridValues) { Assert.AreEqual(value, _iterator.GetCurrent().Value); if (!_iterator.IsDone()) { _iterator.Next(); } } }
public void Constructor_WhenCalled_IsOnFirstCell() { Assert.AreEqual(1, _iterator.GetCurrent().Value); }