Ejemplo n.º 1
0
        public void FilterComesFrom()
        {
            var source = ComesFromSource;
            var filter = Factory.ArrivalsComeFrom(TestStations.ClaphamJunction);

            var results = filter(source).ToArray();

            Assert.Contains(source[0], results);
            Assert.DoesNotContain(source[1], results);
            Assert.Contains(source[3], results);
            Assert.Equal(2, results.Count());
        }