Exemple #1
0
        public void GetMaximumValue()
        {
            var aggregator = new TestDataStatisticsAggregator
            {
                Counts            = new long[3],
                DetailsDataValues = new[] { 0, 5, 10 }
            };

            aggregator.GetMaximumValue().Should().Be(0, "because the base statistics aggregator has no GetMaximumValue() implementation");
        }
Exemple #2
0
        public void IncrementCountoFTransition()
        {
            var aggregator = new TestDataStatisticsAggregator
            {
                Counts            = new long[3],
                DetailsDataValues = new [] { 0, 5, 10 }
            };

            aggregator.IncrementCountOfTransition(1.0);
            aggregator.Counts[0].Should().Be(1);
        }