Handle cancellation in tests with xUnit.net v3

Some tests may take a long time, and cancelling them in your IDE or CI might require some delay. File accesses, HTTP requests, database calls, delays, etc. can occur when you decide to interrupt the ongoing test run. In some IDEs, like Rider, you can stop a test run, but the currently running tests will continue until they are finished. This is why the &ldquo;Stop&rdquo; button sometimes becomes…