示例#1
0
    public void Teardown()
    {
#if DEBUG
        LegacyTimestampBehavior = false;
        BuiltInTypeHandlerResolver.ResetMappings();
#endif
    }
示例#2
0
    public void Setup()
    {
#if DEBUG
        LegacyTimestampBehavior = true;
        BuiltInTypeHandlerResolver.ResetMappings();
#else
        Assert.Ignore(
            "Legacy DateTime tests rely on the Npgsql.EnableLegacyTimestampBehavior AppContext switch and can only be run in DEBUG builds");
#endif
    }