Specification pattern: Difference between revisions

Content deleted Content added
Python: cleaner source code, matches other examples in is_satisfied_by
Line 188:
}
 
public override bool IsSatisfiedBy(T candidate) => left.IsSatisfiedBy(candidate) && !right.IsSatisfiedBy(candidate) != true;
}
 
Line 215:
}
 
public override bool IsSatisfiedBy(T candidate) => left.IsSatisfiedBy(candidate) || !right.IsSatisfiedBy(candidate) != true;
}