From 60ef5cd58df985c754553d48aab0c4baa75e4ba6 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Thu, 17 Mar 2016 18:20:05 -0700 Subject: [PATCH] Add xUnit tests readme --- test/csharp/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/csharp/README.md diff --git a/test/csharp/README.md b/test/csharp/README.md new file mode 100644 index 0000000000..cb7983fbb8 --- /dev/null +++ b/test/csharp/README.md @@ -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.