public void Test_GroupCount_sum_revenue_groupby_count() { var expected = new int[] { 50, 66, 60 }; var grouptCount = 4; var target = new GroupCount(grouptCount, new SumRevenue()); var actual = target.Invoke(_datasource); CollectionAssert.AreEqual(expected, actual.ToList()); }
public void Test_GroupCount_sum_cost_groupby_count() { var expected = new int[] { 6, 15, 24, 21 }; var grouptCount = 3; var target = new GroupCount(grouptCount, new SumCost()); var actual = target.Invoke(_datasource); CollectionAssert.AreEqual(expected, actual.ToList()); }