mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Add all classes to AssemblyLoadContext collection
To ensure that the initializer is called before any other code. This is as close to a global init hook as I can find.
This commit is contained in:
1 parent
b820817c84
commit
6d93a1766b
9 files changed
+9
No files matched your search
@@ -4,6 +4,7 @@ using System.Management.Automation.Language;
|
|||||||
|
|
||||||
namespace PSTests
|
namespace PSTests
|
||||||
{
|
{
|
||||||
|
[Collection("AssemblyLoadContext")]
|
||||||
public static class PSEnumerableBinderTests
|
public static class PSEnumerableBinderTests
|
||||||
{
|
{
|
||||||
[Fact]
|
[Fact]
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ using System.Management.Automation;
|
|||||||
|
|
||||||
namespace PSTests
|
namespace PSTests
|
||||||
{
|
{
|
||||||
|
[Collection("AssemblyLoadContext")]
|
||||||
public static class CorePsExtensionsTests
|
public static class CorePsExtensionsTests
|
||||||
{
|
{
|
||||||
[Fact]
|
[Fact]
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ using System.Management.Automation;
|
|||||||
|
|
||||||
namespace PSTests
|
namespace PSTests
|
||||||
{
|
{
|
||||||
|
[Collection("AssemblyLoadContext")]
|
||||||
public static class PlatformTests
|
public static class PlatformTests
|
||||||
{
|
{
|
||||||
[Fact]
|
[Fact]
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ using System.Management.Automation;
|
|||||||
|
|
||||||
namespace PSTests
|
namespace PSTests
|
||||||
{
|
{
|
||||||
|
[Collection("AssemblyLoadContext")]
|
||||||
public static class PSTypeExtensionsTests
|
public static class PSTypeExtensionsTests
|
||||||
{
|
{
|
||||||
[Fact]
|
[Fact]
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ using Microsoft.PowerShell.Commands;
|
|||||||
|
|
||||||
namespace PSTests
|
namespace PSTests
|
||||||
{
|
{
|
||||||
|
[Collection("AssemblyLoadContext")]
|
||||||
public static class FileSystemProviderTests
|
public static class FileSystemProviderTests
|
||||||
{
|
{
|
||||||
[Fact]
|
[Fact]
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ using System.Management.Automation;
|
|||||||
namespace PSTests
|
namespace PSTests
|
||||||
{
|
{
|
||||||
// Not static because a test requires non-const variables
|
// Not static because a test requires non-const variables
|
||||||
|
[Collection("AssemblyLoadContext")]
|
||||||
public class MshSnapinInfoTests
|
public class MshSnapinInfoTests
|
||||||
{
|
{
|
||||||
// Test that it does not throw an exception
|
// Test that it does not throw an exception
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ using System.Management.Automation;
|
|||||||
|
|
||||||
namespace PSTests
|
namespace PSTests
|
||||||
{
|
{
|
||||||
|
[Collection("AssemblyLoadContext")]
|
||||||
public static class PSVersionInfoTests
|
public static class PSVersionInfoTests
|
||||||
{
|
{
|
||||||
[Fact]
|
[Fact]
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ using System.Management.Automation;
|
|||||||
|
|
||||||
namespace PSTests
|
namespace PSTests
|
||||||
{
|
{
|
||||||
|
[Collection("AssemblyLoadContext")]
|
||||||
public static class SecuritySupportTests
|
public static class SecuritySupportTests
|
||||||
{
|
{
|
||||||
[Fact]
|
[Fact]
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ using System.Management.Automation;
|
|||||||
|
|
||||||
namespace PSTests
|
namespace PSTests
|
||||||
{
|
{
|
||||||
|
[Collection("AssemblyLoadContext")]
|
||||||
public static class UtilsTests
|
public static class UtilsTests
|
||||||
{
|
{
|
||||||
[Fact]
|
[Fact]
|
||||||
|
|||||||
Reference in new issue
Block a user