public virtual void Byte_literal_generated_correctly()
    {
        var typeMapping = new ByteTypeMapping("byte", DbType.Byte);

        Test_GenerateSqlLiteral_helper(typeMapping, byte.MinValue, "0");
        Test_GenerateSqlLiteral_helper(typeMapping, byte.MaxValue, "255");
    }
Ejemplo n.º 2
0
        public virtual void GenerateSqlLiteral_for_Byte_works_for_range_limits()
        {
            var typeMapping = new ByteTypeMapping("byte", DbType.Byte);
            var literal     = typeMapping.GenerateSqlLiteral(byte.MinValue);

            Assert.Equal("0", literal);

            literal = typeMapping.GenerateSqlLiteral(byte.MaxValue);
            Assert.Equal("255", literal);
        }