public void Should_build_predicate_from_lambda() { Expression<Func<string, bool>> expected = x => string.IsNullOrEmpty(x); var target = new Specification<string>(expected); Assert.That(target.Predicate, Is.SameAs(expected)); }