public virtual void Double_value_comparer_handles_NaN()
    {
        var typeMapping = new DoubleTypeMapping("double precision", DbType.Double);

        Assert.True(typeMapping.Comparer.Equals(3.0, 3.0));
        Assert.True(typeMapping.Comparer.Equals(double.NaN, double.NaN));
        Assert.False(typeMapping.Comparer.Equals(3.0, double.NaN));
    }
    public virtual void Double_literal_generated_correctly()
    {
        var typeMapping = new DoubleTypeMapping("double", DbType.Double);

        Test_GenerateSqlLiteral_helper(typeMapping, double.NaN, "NaN");
        Test_GenerateSqlLiteral_helper(typeMapping, double.PositiveInfinity, "Infinity");
        Test_GenerateSqlLiteral_helper(typeMapping, double.NegativeInfinity, "-Infinity");
        Test_GenerateSqlLiteral_helper(typeMapping, double.MinValue, "-1.7976931348623157E+308");
        Test_GenerateSqlLiteral_helper(typeMapping, double.MaxValue, "1.7976931348623157E+308");
    }