예제 #1
0
        public void sum_monthsalary()
        {
            var employees = RepositoryFactory.GetEmployees();
            var actual    = WithoutLinq.CashSum(employees, 3);
            var expected  = new List <int>()
            {
                620,
                540,
                370
            };

            expected.ToExpectedObject().ShouldEqual(actual.ToList());
        }