public void SelectsConjunction() { var spec1 = new IntegerGreaterThanZero(); var spec2 = new IntegerPredicate(i => i > -1); var conjoinedSpec = new Conjunction<int>(spec1, spec2); Assert.That(conjoinedSpec.IsSatisfiedBy(1), Is.True); Assert.That(conjoinedSpec.IsSatisfiedBy(0), Is.False); Assert.That(conjoinedSpec.IsSatisfiedBy(-1), Is.False); }