public void Next_IteratesThroughColumn_HasExpected(int column, int [] columnValues) { _iterator = new ColumnIterator(_puzzle, column); foreach (int value in columnValues) { Assert.AreEqual(value, _iterator.GetCurrent().Value); if (!_iterator.IsDone()) { _iterator.Next(); } } }
public void First_WhenCalled_MovesToFirstCell() { _iterator.Next(); _iterator.Next(); _iterator.First(); Assert.AreEqual(1, _iterator.GetCurrent().Value); }