We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The test cases in a single test method may capture common variables in the method header. So a test case may affect each other.
public void Foo() { var a = 1; "Test case 1".Test(() => { a++; Assert.AreEqual(a, 2); }); "Test case 2".Test(() => { a++; Assert.AreEqual(a, 2); }); }
I recommend isolating every test cases that are in a single test method.
The text was updated successfully, but these errors were encountered:
erdao
No branches or pull requests
The test cases in a single test method may capture common variables in the method header. So a test case may affect each other.
I recommend isolating every test cases that are in a single test method.
The text was updated successfully, but these errors were encountered: