Esempio n. 1
0
        public void First()
        {
            var employees = RepositoryFactory.GetEmployees();
            var actual    = WithoutLinq.EasonFirst(employees, e => e.Age > 30);

            var expected = new Employee
            {
                Name        = "Joe",
                Role        = RoleType.Engineer,
                MonthSalary = 100,
                Age         = 44,
                WorkingYear = 2.6
            };


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