Skip to content
New issue

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

ThreadUnsafe Attribute #28

Open
jnyrup opened this issue Aug 24, 2018 · 0 comments
Open

ThreadUnsafe Attribute #28

jnyrup opened this issue Aug 24, 2018 · 0 comments

Comments

@jnyrup
Copy link
Contributor

jnyrup commented Aug 24, 2018

Assume we have a custom attribute e.g. [ThreadUnsafe] for methods and properties.

Then for unit tests, calling functions/fields/classes decorated with [ThreadUnsafe] is only allowed, if used in:

  • [TestMethod] and method is decorated with [DoNotParallelize], or
  • [ClassInitialize] and class is decorated with [DoNotParallelize], or
  • [AssemblyInitialize].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant