main
1using gorilla.commons.utility;
2
3namespace tests.unit.commons.utility
4{
5 public class PredicateSpecificationSpecs
6 {
7 [Concern(typeof (PredicateSpecification<>))]
8 public class when_checking_if_a_criteria_is_met_and_it_is : concerns
9 {
10 it should_return_true = () => new PredicateSpecification<int>(x => true).is_satisfied_by(1).should_be_true();
11 }
12
13 [Concern(typeof (PredicateSpecification<>))]
14 public class when_checking_if_a_criteria_is_met_and_it_is_not : concerns
15 {
16 it should_return_true = () => new PredicateSpecification<int>(x => false).is_satisfied_by(1).should_be_false();
17 }
18 }
19}