public void BuildGreaterThanExpression( ) { //Arrange List <Person> people = FakeData.People(); Expression <Func <Person, bool> > express = PredicateBuilder.BuildGreaterThan <Person>("Age", 40); Func <Person, bool> func = express.Compile(); var result = people.Where(func); var expectedResult = people.Where(p => p.Age >= 40); Assert.That(result, Is.EquivalentTo(expectedResult)); }