Пример #1
0
        public void Last()
        {
            var employees = RepositoryFactory.GetEmployees();
            var actual    = WithoutLinq.EasonLast(employees, e => e.Age > 30);

            var expected = new Employee
            {
                Name        = "Joey",
                Role        = RoleType.Engineer,
                MonthSalary = 250,
                Age         = 40,
                WorkingYear = 2.6
            };


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