mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Add xUnit tests readme
This commit is contained in:
1 parent
6d93a1766b
commit
60ef5cd58d
1 file changed
+13
@@ -0,0 +1,13 @@
|
||||
# xUnit Tests
|
||||
|
||||
This 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.
|
||||
Reference in new issue
Block a user