public void Next_IteratesThroughRow_HasExpected(int row, int[] rowValues) { _iterator = new RowIterator(_puzzle, row); foreach (int value in rowValues) { Assert.AreEqual(value, _iterator.GetCurrent().Value); if (!_iterator.IsDone()) { _iterator.Next(); } } }
public void Constructor_WhenCalled_IsOnFirstCell() { Assert.AreEqual(1, _iterator.GetCurrent().Value); }