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