Ejemplo n.º 1
0
        public void Paging_GetSum()
        {
            var employees = RepositoryFactory.GetEmployees();
            var act       = WithoutLinq.GetSum(employees, 3, x => x.MonthSalary);
            var expected  = new int[] { 620, 540, 370 };

            expected.ToExpectedObject().ShouldEqual(act.ToArray());
        }