Пример #1
0
        public void Should_allow_dates_within_the_given_interval()
        {
            var sut = new GetOverviewApplicationResult("hello", DateTime.Today.AddDays(-30), 31);

            sut.AddValue(DateTime.Today, 10);

            AssertionExtensions.Should((int)sut.Values[sut.Values.Length - 1]).Be(10);
        }
Пример #2
0
        public void ignore_future_dates_to_allow_malconfigured_clients()
        {
            var sut = new GetOverviewApplicationResult("Label", DateTime.Today.AddDays(-30), 30);

            sut.AddValue(DateTime.Today.AddDays(1), 10);
        }