Mid
From PDF
Testing
Unit Testing
How do you organize test classes and test collections in xUnit?
- Group related tests in the same class.
- Use Collection attribute to group classes that share setup/teardown or should not
run in parallel.
[Collection("Database collection")]
public class TestClass1 { }
[Collection("Database collection")]
public class TestClass2 { }Share this Q&A
Share preview image: https://www.toolliyo.com/images/toolliyo-logo.png