Пример #1
0
        /// <summary>
        /// Checks that the actual value is more than an operand.
        /// </summary>
        /// <param name="check">
        /// The fluent check to be extended.
        /// </param>
        /// <param name="comparand">
        /// Comparand to compare the value to.
        /// </param>
        /// <returns>
        /// A check link.
        /// </returns>
        /// <exception cref="FluentCheckException">
        /// The value is not less than the comparand.
        /// </exception>
        public static ICheckLink <ICheck <ulong> > IsGreaterThan(this ICheck <ulong> check, ulong comparand)
        {
            var numberCheckStrategy = new NumberCheck <ulong>(check);

            return(numberCheckStrategy.IsGreaterThan(comparand));
        }
Пример #2
0
        public static ICheckLink <ICheck <decimal> > IsGreaterThan(this ICheck <decimal> check, decimal comparand)
        {
            var numberCheckStrategy = new NumberCheck <decimal>(check);

            return(numberCheckStrategy.IsGreaterThan(comparand));
        }
Пример #3
0
        public static ICheckLink <ICheck <sbyte> > IsGreaterThan(this ICheck <sbyte> check, sbyte comparand)
        {
            var numberCheckStrategy = new NumberCheck <sbyte>(check);

            return(numberCheckStrategy.IsGreaterThan(comparand));
        }
Пример #4
0
        /// <summary>
        /// Checks that the actual value is more than an operand.
        /// </summary>
        /// <param name="check">
        /// The fluent check to be extended.
        /// </param>
        /// <param name="comparand">
        /// Comparand to compare the value to.
        /// </param>
        /// <returns>
        /// A check link.
        /// </returns>
        /// <exception cref="FluentCheckException">
        /// The value is not less than the comparand.
        /// </exception>
        public static ICheckLink <ICheck <float> > IsGreaterThan(this ICheck <float> check, float comparand)
        {
            var numberCheckStrategy = new NumberCheck <float>(check);

            return(numberCheckStrategy.IsGreaterThan(comparand));
        }