Ejemplo n.º 1
0
        public void take()
        {
            var employees = RepositoryFactory.GetEmployees();
            var actual    = WithoutLinq.EasonTake(employees, 2);

            var expected = new List <Employee>()
            {
                new Employee {
                    Name = "Joe", Role = RoleType.Engineer, MonthSalary = 100, Age = 44, WorkingYear = 2.6
                },
                new Employee {
                    Name = "Tom", Role = RoleType.Engineer, MonthSalary = 140, Age = 33, WorkingYear = 2.6
                },
            };

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