public void AddMixedItems() { SetMockValues(5); _recentFiles.SetMostRecent("30"); _recentFiles.SetMostRecent("20"); _recentFiles.SetMostRecent("10"); CheckListContains(10, 20, 30, 1, 2, 3, 4, 5); }
// 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()); } }
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); }