xUnit test deadlock
问题 When I run my xUnit unit tests I sometimes get an error message like "Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim" on one or more of the tests, seemingly randomly. If I re-run any failing test on its own it passes. What should I do to prevent this? Is there an option to run the tests one-after-another instead of all at once? (N.B. I'm running the tests over the API methods in my ASP.Net 5 MVC controllers under