title: Emulate UI thread the same as in winforms in xunit test
body: <p>Is it possible to emulate behavior as in UI thread + <code>winforms</code>?
  A bit context, I'm writing a test for my c# library which can be used in <code>winforms</code> and I had some issues with <code>await</code>s in my code. So, now when I've fixed it, I want to write a test for it</p>