Exemplo n.º 1
0
    public void Teardown()
    {
#if DEBUG
        LegacyTimestampBehavior = false;
        BuiltInTypeHandlerResolver.ResetMappings();
#endif
    }
Exemplo n.º 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
    }