Beispiel #1
0
        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"));
        }
Beispiel #2
0
 public void Setup()
 {
     _integerEnumerable = new[] { 1, 2, 3, 4 };
     _listWatcher       = new ListWatcher();
     _watchedEnumerable = new WatchedEnumerable <int>(_integerEnumerable, "base", _listWatcher);
 }
Beispiel #3
0
 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);
 }