Contents tagged with Xunit

  • Testing Async Methods with Xunit

    Tags: C#, Unit Testing, Xunit

    Previously, when testing asynchronous methods such as the one below, I used synchronous tests and forced the method invocation to be synchronous by using .Result.

    public class AsyncTestClass … more