Exemplo n.º 1
0
        public override void Decimal_literal_generated_correctly()
        {
            var typeMapping = new SqliteDecimalTypeMapping("TEXT");

            Test_GenerateSqlLiteral_helper(typeMapping, decimal.MinValue, "'-79228162514264337593543950335.0'");
            Test_GenerateSqlLiteral_helper(typeMapping, decimal.MaxValue, "'79228162514264337593543950335.0'");
        }
Exemplo n.º 2
0
        public override void GenerateSqlLiteral_for_Decimal_works_for_range_limits()
        {
            var typeMapping = new SqliteDecimalTypeMapping("TEXT");
            var literal     = typeMapping.GenerateSqlLiteral(decimal.MinValue);

            Assert.Equal("'-79228162514264337593543950335.0'", literal);

            literal = typeMapping.GenerateSqlLiteral(decimal.MaxValue);
            Assert.Equal("'79228162514264337593543950335.0'", literal);
        }