public static void That(object objA, IPerformAComparison comparison) { var success = comparison.Execute(objA); if (!success) { throw comparison.GenerateError(objA); } }
public IPerformAComparison Shim(IPerformAComparison comparison) { return _comparisonSettings == ComparisonSettings.Negated ? new Invert(comparison) : comparison; }
public Invert(IPerformAComparison regular) { _regular = regular; }
public IPerformAComparison Shim(IPerformAComparison comparison) { return(_comparisonSettings == ComparisonSettings.Negated ? new Invert(comparison) : comparison); }