当前位置: 首页>>代码示例>>C#>>正文


C# NumberCheck.IsPositive方法代码示例

本文整理汇总了C#中NumberCheck.IsPositive方法的典型用法代码示例。如果您正苦于以下问题:C# NumberCheck.IsPositive方法的具体用法?C# NumberCheck.IsPositive怎么用?C# NumberCheck.IsPositive使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在NumberCheck的用法示例。


在下文中一共展示了NumberCheck.IsPositive方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: IsPositive

        #pragma warning disable 169

        //// ---------------------- WARNING ----------------------
        //// AUTO-GENERATED FILE WHICH SHOULD NOT BE MODIFIED!
        //// To change this class, change the one that is used
        //// as the golden source/model for this autogeneration
        //// (i.e. the one dedicated to the integer values).
        //// -----------------------------------------------------

        // Since this class is the model/template for the generation of all the other signed numbers related CheckExtensions classes, don't forget to re-generate all the other classes every time you change this one. To do that, just save the ..\T4\NumberFluentAssertionGenerator.tt file within Visual Studio 2012. This will trigger the T4 code generation process.

        /// <summary>
        /// Checks that the actual value is strictly positive.
        /// </summary>
        /// <param name="check">The fluent check to be extended.</param>
        /// <returns>
        /// A check link.
        /// </returns>
        /// <exception cref="FluentCheckException">The value is not strictly positive.</exception>
        public static ICheckLink<ICheck<sbyte>> IsPositive(this ICheck<sbyte> check)
        {
            var numberCheckStrategy = new NumberCheck<sbyte>(check);
            return numberCheckStrategy.IsPositive();
        }
开发者ID:rhwy,项目名称:NFluent,代码行数:24,代码来源:SbyteSignedCheckExtensions.cs


注:本文中的NumberCheck.IsPositive方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。