diff --git a/test/csharp/test_Binders.cs b/test/csharp/test_Binders.cs index 6f5a8f7d1..91dc76d25 100644 --- a/test/csharp/test_Binders.cs +++ b/test/csharp/test_Binders.cs @@ -4,6 +4,7 @@ using System.Management.Automation.Language; namespace PSTests { + [Collection("AssemblyLoadContext")] public static class PSEnumerableBinderTests { [Fact] diff --git a/test/csharp/test_CorePsExtensions.cs b/test/csharp/test_CorePsExtensions.cs index 2a736d7f9..97d2ee50f 100644 --- a/test/csharp/test_CorePsExtensions.cs +++ b/test/csharp/test_CorePsExtensions.cs @@ -4,6 +4,7 @@ using System.Management.Automation; namespace PSTests { + [Collection("AssemblyLoadContext")] public static class CorePsExtensionsTests { [Fact] diff --git a/test/csharp/test_CorePsPlatform.cs b/test/csharp/test_CorePsPlatform.cs index 7196862eb..e36f5aa4f 100644 --- a/test/csharp/test_CorePsPlatform.cs +++ b/test/csharp/test_CorePsPlatform.cs @@ -6,6 +6,7 @@ using System.Management.Automation; namespace PSTests { + [Collection("AssemblyLoadContext")] public static class PlatformTests { [Fact] diff --git a/test/csharp/test_ExtensionMethods.cs b/test/csharp/test_ExtensionMethods.cs index e22de8be5..134f94b28 100644 --- a/test/csharp/test_ExtensionMethods.cs +++ b/test/csharp/test_ExtensionMethods.cs @@ -4,6 +4,7 @@ using System.Management.Automation; namespace PSTests { + [Collection("AssemblyLoadContext")] public static class PSTypeExtensionsTests { [Fact] diff --git a/test/csharp/test_FileSystemProvider.cs b/test/csharp/test_FileSystemProvider.cs index 2bdcacbfc..7c33910d8 100644 --- a/test/csharp/test_FileSystemProvider.cs +++ b/test/csharp/test_FileSystemProvider.cs @@ -5,6 +5,7 @@ using Microsoft.PowerShell.Commands; namespace PSTests { + [Collection("AssemblyLoadContext")] public static class FileSystemProviderTests { [Fact] diff --git a/test/csharp/test_MshSnapinInfo.cs b/test/csharp/test_MshSnapinInfo.cs index a283e7995..8a14afb89 100644 --- a/test/csharp/test_MshSnapinInfo.cs +++ b/test/csharp/test_MshSnapinInfo.cs @@ -5,6 +5,7 @@ using System.Management.Automation; namespace PSTests { // Not static because a test requires non-const variables + [Collection("AssemblyLoadContext")] public class MshSnapinInfoTests { // Test that it does not throw an exception diff --git a/test/csharp/test_PSVersionInfo.cs b/test/csharp/test_PSVersionInfo.cs index ef980475e..5bd7acb82 100644 --- a/test/csharp/test_PSVersionInfo.cs +++ b/test/csharp/test_PSVersionInfo.cs @@ -4,6 +4,7 @@ using System.Management.Automation; namespace PSTests { + [Collection("AssemblyLoadContext")] public static class PSVersionInfoTests { [Fact] diff --git a/test/csharp/test_SecuritySupport.cs b/test/csharp/test_SecuritySupport.cs index 962dc6670..33c336308 100644 --- a/test/csharp/test_SecuritySupport.cs +++ b/test/csharp/test_SecuritySupport.cs @@ -4,6 +4,7 @@ using System.Management.Automation; namespace PSTests { + [Collection("AssemblyLoadContext")] public static class SecuritySupportTests { [Fact] diff --git a/test/csharp/test_Utils.cs b/test/csharp/test_Utils.cs index eb5167780..65ded34f6 100644 --- a/test/csharp/test_Utils.cs +++ b/test/csharp/test_Utils.cs @@ -4,6 +4,7 @@ using System.Management.Automation; namespace PSTests { + [Collection("AssemblyLoadContext")] public static class UtilsTests { [Fact]