question

NewCodee-7655 avatar image
0 Votes"
NewCodee-7655 asked AnnaXiu-MSFT commented

How to test a method which contains WriteVerbose()?

I have the following sample piece of code in c# -

public void MyMethod() {

    WriteVerbose("My Statement");

}

How should I write a testmethod for this using MSTest?

WriteVerbose() is from CmdletProvider

dotnet-csharpvs-testing
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @NewCodee-7655, I’m now trying to involve someone more experienced in this topic to research this issue. It may take some time, please be patient to wait. Any update I will share here. Thanks for your understanding.

0 Votes 0 ·

0 Answers