Esempio n. 1
0
        public void skip_employee()
        {
            var employees = RepositoryFactory.GetEmployees();
            var actual    = WithoutLinq.CashSkip(employees, 6);
            var expected  = new List <Employee>()
            {
                new Employee {
                    Name = "Frank", Role = RoleType.Engineer, MonthSalary = 120, Age = 16, WorkingYear = 2.6
                },
                new Employee {
                    Name = "Joey", Role = RoleType.Engineer, MonthSalary = 250, Age = 40, WorkingYear = 2.6
                },
            };

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