// Test configuration and fixtures using System; namespace AIBrain.Tests { public static class Conftest { public static void SetupTestEnvironment() { // Set test environment variables Environment.SetEnvironmentVariable("DRY_RUN", "1"); Environment.SetEnvironmentVariable("PGDATABASE", "test_db"); Environment.SetEnvironmentVariable("PGHOST", "localhost"); } public static void TeardownTestEnvironment() { // Clean up test environment Environment.SetEnvironmentVariable("DRY_RUN", null); Environment.SetEnvironmentVariable("PGDATABASE", null); Environment.SetEnvironmentVariable("PGHOST", null); } public static T CreateTestInstance() where T : new() { return new T(); } } }