Пример #1
0
        public void SetCurrent_WhenUsed_ChangesValue()
        {
            _iterator.MoveNext();
            _iterator.SetCurrent(new Cell(4));

            Assert.AreEqual(4, _iterator.Current.Value);
        }
Пример #2
0
        private void GuessCandidate(PuzzleIterator puzzleIterator, CellValue candidate)
        {
            var cell = new Cell(candidate.Value);

            puzzleIterator.SetCurrent(cell);
            ReduceCandidates();
        }