コード例 #1
0
 public void IsDone_LastElement_ReturnsTrue()
 {
     for (int i = 0; i < Constants.NumberOfCellsInSegment; i++)
     {
         _iterator.Next();
     }
     Assert.IsTrue(_iterator.IsDone());
 }
コード例 #2
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();
         }
     }
 }