Example #1
0
        public void SummingAggregation_Produces_Sum()
        {
            var aggregator = new SummingAggregator(_measurements);

            var result = aggregator.Aggregate();

            Assert.Equal(107, result.X);
            Assert.Equal(30, result.Y);
        }
Example #2
0
        public void SummingAggregation_Produces_Sum()
        {
            var aggregator = new SummingAggregator(_measurements); // _measurements is passed into the base constructor (points aggregator)

            var result = aggregator.Aggregate();

            Assert.Equal(107, result.X);
            Assert.Equal(30, result.Y);
        }