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
Allow AssemblyCleanup and ClassCleanup methods to accept TestContext object.
Background and Motivation
By allowing [AssemblyCleanup] and [ClassCleanup] methods to accept a TestContext object as parameter (or not for backward compatibility), we would allow symetrical APIs and would unlock some new capabilities. For example, when using cooperative cancellation (or cooperative timeout) we need to have access to the CancellationToken object which is current impossible in the current shape.
Proposed Feature
Allow overload for the [AssemblyCleanup] and [ClassCleanup] method accepting a single parameter of type TestContext. The related analyzer and code-fix should be updated accordingly.
The text was updated successfully, but these errors were encountered:
Summary
Allow AssemblyCleanup and ClassCleanup methods to accept TestContext object.
Background and Motivation
By allowing
[AssemblyCleanup]
and[ClassCleanup]
methods to accept aTestContext
object as parameter (or not for backward compatibility), we would allow symetrical APIs and would unlock some new capabilities. For example, when using cooperative cancellation (or cooperative timeout) we need to have access to theCancellationToken
object which is current impossible in the current shape.Proposed Feature
Allow overload for the
[AssemblyCleanup]
and[ClassCleanup]
method accepting a single parameter of typeTestContext
. The related analyzer and code-fix should be updated accordingly.The text was updated successfully, but these errors were encountered: