Example #1
0
        public static BooleanContext Is(this BooleanContext context, bool comparisonValue)
        {
            Mandate.That(context, context.Value != comparisonValue,
                         () => new ArgumentException(context.ParamName));

            return(new BooleanContext(context));
        }
Example #2
0
        public static MandateContext <bool> IsTrue(this BooleanContext context)
        {
            context.Is(true);

            return(new BooleanContext(context));
        }
Example #3
0
        public static MandateContext <bool> IsFalse(this BooleanContext context)
        {
            context.Is(false);

            return(new BooleanContext(context));
        }