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
A TestContext.WriteLine("Some trace message"); in the test method doesn't produce any output. There's no Output link in the Test Explorer's right pane.
If I call any other output method, like Console.WriteLine(), there's a Output link, but the output doesn't contain the trace messages written with TestContext.WriteLine().
Description
In the
TestCleanup
method, theTestContext.CurrentTestOutcome
property is alwaysInProgress
rather than the actual current test outcome.Using the old test framework (bundled with VS, New > Project > Unit Test) the outcome is set correctly.
Steps to reproduce
Expected behavior
TestContext.CurrentTestOutcome
is set to the actual outcome type of the current test.Image taken when executing the code above using the old VS-bundled framework.
Actual behavior
TestContext.CurrentTestOutcome
is alwaysInProgress
Image taken when executing the code above using the new NuGet package framework.
Environment
MSTest.TestAdapter
MSTest.TestFramework
The text was updated successfully, but these errors were encountered: