public void SumTest_4筆一組取Revenue總和() { var expected = new List <int>() { 50, 66, 60 }; var target = new cal(); var actual = target.Sum <Prod>(GetData(), "Revenue", 4); expected.ToExpectedObject().ShouldEqual(actual); }
public void SumTest_3筆一組取Cost總和() { var expected = new List <int>() { 6, 15, 24, 21 }; var target = new cal(); var actual = target.Sum <Prod>(GetData(), "Cost", 3); expected.ToExpectedObject().ShouldEqual(actual); }