diff --git a/Directory.Packages.props b/Directory.Packages.props index 7227000a..e5dbb2ad 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -19,7 +19,7 @@ - + diff --git a/test/OpenFeature.Tests/ClearOpenFeatureInstanceFixture.cs b/test/OpenFeature.Tests/ClearOpenFeatureInstanceFixture.cs index 5f31c71a..5a620214 100644 --- a/test/OpenFeature.Tests/ClearOpenFeatureInstanceFixture.cs +++ b/test/OpenFeature.Tests/ClearOpenFeatureInstanceFixture.cs @@ -1,13 +1,14 @@ -namespace OpenFeature.Tests +using System; + +namespace OpenFeature.Tests; + +public class ClearOpenFeatureInstanceFixture : IDisposable { - public class ClearOpenFeatureInstanceFixture + // Make sure the singleton is cleared between tests + public void Dispose() { - // Make sure the singleton is cleared between tests - public ClearOpenFeatureInstanceFixture() - { - Api.Instance.SetContext(null); - Api.Instance.ClearHooks(); - Api.Instance.SetProviderAsync(new NoOpFeatureProvider()).Wait(); - } + Api.Instance.SetContext(null); + Api.Instance.ClearHooks(); + Api.Instance.SetProviderAsync(new NoOpFeatureProvider()).Wait(); } }