public static WatchedEnumerable <T> Where <T>(this WatchedEnumerable <T> watchedEnumerable, Func <T, bool> predicate) { var enumerableWhere = (watchedEnumerable as IEnumerable <T>).Where(predicate); return(watchedEnumerable.New(enumerableWhere, "where")); }
public void Setup() { _integerEnumerable = new[] { 1, 2, 3, 4 }; _listWatcher = new ListWatcher(); _watchedEnumerable = new WatchedEnumerable <int>(_integerEnumerable, "base", _listWatcher); }
public static List <T> ToList <T>(this WatchedEnumerable <T> watchedEnumerable) { return((watchedEnumerable as IEnumerable <T>).ToList()); }
public void Setup() { _integerEnumerable = new[] { 1, 2, 3, 4 }; _listWatcher = new ListWatcher(); _watchedEnumerable = new WatchedEnumerable<int>(_integerEnumerable, "base", _listWatcher); }