PowerShell/test/csharp
2016-03-31 12:33:44 -07:00
..
fixture_AssemblyLoadContext.cs Fix AssemblyLoadContext fixture 2016-03-17 17:36:06 -07:00
project.json Bump .NET Core packages to 23931-00 2016-03-31 12:33:44 -07:00
README.md Fix up Pester test documentation 2016-03-30 23:30:25 -07:00
test_Binders.cs Add all classes to AssemblyLoadContext collection 2016-03-17 18:15:39 -07:00
test_CorePsExtensions.cs Add all classes to AssemblyLoadContext collection 2016-03-17 18:15:39 -07:00
test_CorePsPlatform.cs Add all classes to AssemblyLoadContext collection 2016-03-17 18:15:39 -07:00
test_ExtensionMethods.cs Add all classes to AssemblyLoadContext collection 2016-03-17 18:15:39 -07:00
test_FileSystemProvider.cs Fix travis fail with different Mode format in special machine for FileSytemProvider xunit test 2016-03-24 02:02:50 -07:00
test_MshSnapinInfo.cs Add all classes to AssemblyLoadContext collection 2016-03-17 18:15:39 -07:00
test_PSVersionInfo.cs Add all classes to AssemblyLoadContext collection 2016-03-17 18:15:39 -07:00
test_Runspace.cs Fix AssemblyLoadContext fixture 2016-03-17 17:36:06 -07:00
test_SecuritySupport.cs Add all classes to AssemblyLoadContext collection 2016-03-17 18:15:39 -07:00
test_SessionState.cs Update test fix for test_SessionState.cs 2016-03-17 20:18:29 -07:00
test_Utils.cs Add all classes to AssemblyLoadContext collection 2016-03-17 18:15:39 -07:00

xUnit Tests

These tests are completely Linux specific.

Every test class must belong to [Collection("AssemblyLoadContext")]. This ensures that PowerShell's AssemblyLoadContext is initialized before any other code is executed. When this is not the case, late initialization fails with System.InvalidOperationException : Binding model is already locked for the AppDomain and cannot be reset.

Having every class in the same collection is as close to an xUnit global init hook as can be done.