示例#1
0
        public void SigmaTest_Empty_group_by_1()
        {
            var la       = new ListAdder();
            var expected = new List <int>();
            var actual   = la.Sigma(table, "Empty", 1);

            CollectionAssert.AreEqual(expected, actual);
        }
示例#2
0
        public void SigmaTest_Revenue_group_by_4()
        {
            var la       = new ListAdder();
            var expected = new List <int>()
            {
                50, 66, 60
            };
            var actual = la.Sigma(table, "Revenue", 4);

            CollectionAssert.AreEqual(expected, actual);
        }
示例#3
0
        public void SigmaTest_Cost_group_by_3()
        {
            var la       = new ListAdder();
            var expected = new List <int>()
            {
                6, 15, 24, 21
            };
            var actual = la.Sigma(table, "Cost", 3);

            CollectionAssert.AreEqual(expected, actual);
        }