xUnit uses the same AppDomain for the whole test assembly, this is problematic as I'm testing a UI library and need to create a new Application instance for each individual test.
It works when I run a single test, but when I Run All the first test passed, but all subsequent tests fail with Cannot create more than one System.Windows.Application instance in the same AppDomain at the line where I create a new Application object.