public void SetCurrent_WhenUsed_ChangesValue() { _iterator.MoveNext(); _iterator.SetCurrent(new Cell(4)); Assert.AreEqual(4, _iterator.Current.Value); }
private void GuessCandidate(PuzzleIterator puzzleIterator, CellValue candidate) { var cell = new Cell(candidate.Value); puzzleIterator.SetCurrent(cell); ReduceCandidates(); }