コード例 #1
0
    public virtual void UInt_literal_generated_correctly()
    {
        var typeMapping = new UIntTypeMapping("uint", DbType.UInt32);

        Test_GenerateSqlLiteral_helper(typeMapping, uint.MinValue, "0");
        Test_GenerateSqlLiteral_helper(typeMapping, uint.MaxValue, "4294967295");
    }
コード例 #2
0
        public virtual void GenerateSqlLiteral_for_UInt_works_for_range_limits()
        {
            var typeMapping = new UIntTypeMapping("uint", DbType.UInt32);
            var literal     = typeMapping.GenerateSqlLiteral(uint.MinValue);

            Assert.Equal("0", literal);

            literal = typeMapping.GenerateSqlLiteral(uint.MaxValue);
            Assert.Equal("4294967295", literal);
        }