示例#1
0
        /// <summary>
        /// Checks that the actual value is less 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> > IsLessThan(this ICheck <ulong> check, ulong comparand)
        {
            var numberCheckStrategy = new NumberCheck <ulong>(check);

            return(numberCheckStrategy.IsLessThan(comparand));
        }
示例#2
0
        /// <summary>
        /// Checks that the actual value is less 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 <decimal> > IsLessThan(this ICheck <decimal> check, decimal comparand)
        {
            var numberCheckStrategy = new NumberCheck <decimal>(check);

            return(numberCheckStrategy.IsLessThan(comparand));
        }
示例#3
0
        /// <summary>
        /// Checks that the actual value is less 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 <sbyte> > IsLessThan(this ICheck <sbyte> check, sbyte comparand)
        {
            var numberCheckStrategy = new NumberCheck <sbyte>(check);

            return(numberCheckStrategy.IsLessThan(comparand));
        }
示例#4
0
        /// <summary>
        /// Checks that the actual value is less 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> > IsLessThan(this ICheck <float> check, float comparand)
        {
            var numberCheckStrategy = new NumberCheck <float>(check);

            return(numberCheckStrategy.IsLessThan(comparand));
        }