public virtual void UShort_literal_generated_correctly()
    {
        var typeMapping = new UShortTypeMapping("ushort", DbType.UInt16);

        Test_GenerateSqlLiteral_helper(typeMapping, ushort.MinValue, "0");
        Test_GenerateSqlLiteral_helper(typeMapping, ushort.MaxValue, "65535");
    }
Example #2
0
        public virtual void GenerateSqlLiteral_for_UShort_works_for_range_limits()
        {
            var typeMapping = new UShortTypeMapping("ushort", DbType.UInt16);
            var literal     = typeMapping.GenerateSqlLiteral(ushort.MinValue);

            Assert.Equal("0", literal);

            literal = typeMapping.GenerateSqlLiteral(ushort.MaxValue);
            Assert.Equal("65535", literal);
        }