namespace ZB.MOM.WW.MxGateway.Tests.TestSupport; /// /// xUnit collection for tests that mutate process-global state (environment variables /// read by GatewayApplication.Build, e.g. Kestrel__Endpoints__… and /// MxGateway__Tls__SelfSignedCertPath). DisableParallelization keeps such a test from /// running concurrently with any other collection: otherwise a parallel host-building test inherits /// the mutated variables mid-run and the two race on the same generated-certificate file (on Windows, /// "the process cannot access the file … because it is being used by another process"). Membership is /// deliberately narrow — only add classes that set/clear real environment variables, not ones that /// pass configuration through Build([...]) command-line args. /// [CollectionDefinition(Name, DisableParallelization = true)] public sealed class GlobalEnvironmentCollection { /// The collection name applied via [Collection(GlobalEnvironmentCollection.Name)]. public const string Name = "GlobalEnvironmentMutation"; }