コード例 #1
0
 static public void Write(tagCONSOLEFLAGS flags, string text)
 {
     if (flags == tagCONSOLEFLAGS.CONSOLE_TEXT)
     {
         text = FixupXml(text);
     }
     //NOTE:You can also simply use Console.WriteLine and have it show up in LTM...
     //Is the new ITestConsole interface available (using a new LTM)
     if (TestConsole != null)
     {
         TestConsole.Write(flags, text);
     }
     else if (Error != null)
     {
         //Otherwise
         Error.Transmit(text);
     }
 }
コード例 #2
0
ファイル: cerror.cs プロジェクト: ChuangYang/corefx
 static public void Write(tagCONSOLEFLAGS flags, string text)
 {
     if (flags == tagCONSOLEFLAGS.CONSOLE_TEXT)
     {
         text = FixupXml(text);
     }
     //NOTE:You can also simply use Console.WriteLine and have it show up in LTM...
     //Is the new ITestConsole interface available (using a new LTM)
     if (TestConsole != null)
     {
         TestConsole.Write(flags, text);
     }
     else if (Error != null)
     {
         //Otherwise
         Error.Transmit(text);
     }
 }