public static BooleanContext Is(this BooleanContext context, bool comparisonValue) { Mandate.That(context, context.Value != comparisonValue, () => new ArgumentException(context.ParamName)); return(new BooleanContext(context)); }
public static MandateContext <bool> IsTrue(this BooleanContext context) { context.Is(true); return(new BooleanContext(context)); }
public static MandateContext <bool> IsFalse(this BooleanContext context) { context.Is(false); return(new BooleanContext(context)); }