示例#1
0
 public void BrowsablePointer_PointsToSecond_WhenThirdIsDeleted()
 {
     var list = new BrowsableCollectionMock (photo1, photo2, photo3);
     var pointer = new BrowsablePointer (list, 2);
     list.RemoveAt (2);
     Assert.AreEqual (1, pointer.Index);
     Assert.AreEqual (photo2, pointer.Current);
 }
示例#2
0
 public void BrowsablePointer_StillPointsToSecond_WhenFirstIsDeleted()
 {
     var list = new BrowsableCollectionMock (photo1, photo2, photo3);
     var pointer = new BrowsablePointer (list, 1);
     list.RemoveAt (0);
     Assert.AreEqual (0, pointer.Index);
     Assert.AreEqual (photo2, pointer.Current);
 }