Example #1
0
        public void TestAny_not_any_condition()
        {
            var employees = RepositoryFactory.GetEmployees();

            Assert.True(WithoutLinq.CashAny(employees));

            Assert.True(employees.CashAny());
        }
Example #2
0
        public void TestAnyIsTrue()
        {
            var employees = RepositoryFactory.GetEmployees();

            Assert.True(WithoutLinq.CashAny(employees, a => a.MonthSalary < 500));

            Assert.True(employees.CashAny(a => a.MonthSalary < 500));
        }