Example #1
0
        public void FilterFeaturesUsingStartTime()
        {
            var features = new[]
            {
                new TimeDependentFeature {
                    Time = new DateTime(2000, 1, 1)
                },
                new TimeDependentFeature {
                    Time = new DateTime(2001, 1, 1)
                }
            };

            var featureCollection = new FeatureCollection(features, typeof(TimeDependentFeature));

            featureCollection.SetCurrentTimeSelection(new DateTime(2001, 1, 1), null);

            featureCollection.Features.Count
            .Should().Be.EqualTo(1);
        }