Exemplo n.º 1
0
 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();
         }
     }
 }
Exemplo n.º 2
0
        public void First_WhenCalled_MovesToFirstCell()
        {
            _iterator.Next();
            _iterator.Next();
            _iterator.First();

            Assert.AreEqual(1, _iterator.GetCurrent().Value);
        }