예제 #1
0
 public void AddMixedItems()
 {
     SetMockValues(5);
     _recentFiles.SetMostRecent("30");
     _recentFiles.SetMostRecent("20");
     _recentFiles.SetMostRecent("10");
     CheckListContains(10, 20, 30, 1, 2, 3, 4, 5);
 }
예제 #2
0
 // Set RecentFiles to a list of known values up
 // to a maximum. Most recent will be "1", next
 // "2", and so on...
 private void SetMockValues(int count)
 {
     for (int num = count; num > 0; --num)
     {
         recentFiles.SetMostRecent(num.ToString());
     }
 }
예제 #3
0
 public void IncreaseSizeAfterAdd()
 {
     SetMockValues(5);
     _recentFiles.MaxFiles = 7;
     _recentFiles.SetMostRecent("30");
     _recentFiles.SetMostRecent("20");
     _recentFiles.SetMostRecent("10");
     CheckListContains(10, 20, 30, 1, 2, 3, 4);
 }