seanhalliday
seanhalliday
I followed the pattern of using the SingleThreadedSynchronizationContext but this does not seem to work with the [TestInitialize] method being async (in 3.09 at least). If I await a task...
Sorry, my mistake, it is when we use the WPF dispatcher. It will be some effort to extract a test project but I will try.
``` using System.Windows; namespace TestProject1 { [TestClass] public sealed class Test1 { [AssemblyInitialize] public static void AssemblyInit(TestContext context) { System.Windows.Application app = new System.Windows.Application() { ShutdownMode = ShutdownMode.OnExplicitShutdown }; }...
We can work around it by having our TestInit be void and use a helper to run a async function like the above with the dispatcher frame code. ``` [TestInitialize]...