You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
either runtime Exception a la UTA018: Example.Test.MyTest: Cannot define more than one method with the TestInitialize attribute.
or make analyzer value abstract more than generic-ness
Actual behavior
MSTEST0008 gets diagnosed, but unit tests run both Init-Methods; and Init-Methods from abstract generic base classes correctly
Additional context
I guess this would also be the same for TestCleanup.
But not sure how this relates to ClassInitialize/ClassCleanup, since it's also defined in 'this specific test-class' (contrary to AssemblyInitialize/ AssemblyCleanup).
The text was updated successfully, but these errors were encountered:
Describe the bug
[TestInitialize]
is allowed on abstract non-generic types[TestInitialize]
with one per class, which all run correctlySteps To Reproduce
Expected behavior
UTA018: Example.Test.MyTest: Cannot define more than one method with the TestInitialize attribute.
abstract
more than generic-nessActual behavior
MSTEST0008
gets diagnosed, but unit tests run both Init-Methods; and Init-Methods from abstract generic base classes correctlyAdditional context
I guess this would also be the same for
TestCleanup
.But not sure how this relates to
ClassInitialize
/ClassCleanup
, since it's also defined in 'this specific test-class' (contrary toAssemblyInitialize
/AssemblyCleanup
).The text was updated successfully, but these errors were encountered: