public void EmptyIncludeTest() { IFilter filter = new DepartBeforeArriveFilter(); var test = DepartBefore(); var result = filter.Include(new HashSet <Flight>(), test); Assert.Empty(result); }
public void IncludeValidTest() { IFilter filter = new DepartBeforeArriveFilter(); var depart = DepartBefore(); var arrive = ArriveBefore(); var test = new List <Flight>(depart); test.AddRange(arrive); var result = filter.Include(new HashSet <Flight>(), test); Assert.Equal(arrive, result); }