public void CountTest_column_Revenue_groupSize_0_be_DivideByZeroException()
        {
            // arrange
            var expected = new int[] { 50, 66, 60 };
            var target = new DataGroupCounter();

            // act
            Action act = () => target.Count(this.GetOrders(), "Revenue", 0);

            // assert
            act.ShouldThrow<DivideByZeroException>();
        }
        public void CountTest_column_Revenue_groupSize_4_be_50_66_60()
        {
            // arrange
            var expected = new List<int> { 50, 66, 60 };
            var target = new DataGroupCounter();

            // act
            var actual = target.Count(this.GetOrders(), "Revenue", 4);

            // assert
            CollectionAssert.AreEqual(expected, actual);
        }
        public void CountTest_column_Cost_groupSize_3_be_6_15_24_21()
        {
            // arrange
            var expected = new List<int> { 6, 15, 24, 21 };
            var target = new DataGroupCounter();

            // act
            var actual = target.Count(this.GetOrders(), "Cost", 3);

            // assert
            CollectionAssert.AreEqual(expected, actual);
        }