예제 #1
0
        public void EmptyIncludeTest()
        {
            PastDepartFilter filter = new PastDepartFilter();
            var test = FutureDepartList();

            var result = filter.Include(new HashSet <Flight>(), test);

            Assert.Empty(result);
        }
예제 #2
0
        public void IncludeValidTest()
        {
            PastDepartFilter filter = new PastDepartFilter();
            var past   = PastDepartList();
            var future = FutureDepartList();
            var test   = new List <Flight>(past);

            test.AddRange(future);


            var result = filter.Include(new HashSet <Flight>(), test);


            Assert.Equal(result, past);
        }