I\'m writing unit tests for a WinRT app, and I am able to invoke non-async private methods using this:
TheObjectClass theObject = new TheObjectClass(); Type
Invoke should return an object convertible to Task. Just await that.
Invoke
Task
await
If your private method returns void, then you'll need a custom SynchronizationContext, which is messy. It's better to have your methods return Task/Task.
void
SynchronizationContext