Skip to content

TestContext.Writeline does not output messages. #120

@AbhitejJohn

Description

@AbhitejJohn

Description

This came from a user report on a blog.
TestContext.WriteLine does not output the messages anywhere.

Steps to reproduce

In a vanilla desktop unit test project, add the following:

public TestContext TestContext
{
    get;
    set;
}

[TestMethod]
public void TestMethod1()
{
     this.TestContext.WriteLine("Hello There");
}

Run the test from Visual Studio.

Expected behavior

That "Hello There" is printed in the TestOutput pane.

Actual behavior

Nothing is printed anywhere.

Environment

MSTest.TestFramework : 1.1.13
MSTest.TestAdapter : 1.1.13

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions