Conversation
src/Adapter/MSTestAdapter.PlatformServices/Services/TestContextImplementation.cs
Outdated
Show resolved
Hide resolved
|
@Youssef1313 I was also wondering if we want to take this as an opportunity to introduce different types/interfaces for the various stages of the context? The idea being that we could offer different state based on the stage (e.g. after test runs, we know the result, after all tests of a class run we know all results...) |
That seems like a much bigger piece of work. We definitely can do given some design proposal. |
| internal ScopedTestContextSetter(TestContextImplementation? testContext) | ||
| => CurrentTestContextAsyncLocal.Value = testContext; | ||
| { | ||
| _previousContext = TestContext.Current; |
There was a problem hiding this comment.
Is this ever non-null? And if so, do we have a realistic use case?
Fix #6137