Inheritance: IMessageLogger
 public void WriteTestFailed(string message, string details)
 {
     Console.WriteLine(String.Format("##teamcity[testFailed name='{0}' message='{1}' details='{2}']", MessageLogger.EscapeCharacters(_testName),
                                     MessageLogger.EscapeCharacters(message), MessageLogger.EscapeCharacters(details)));
     WriteTestFinished(0);
 }
 private void WriteTestFinished(double duration)
 {
     Console.WriteLine(String.Format("##teamcity[testFinished name='{0}' duration='{1}']", MessageLogger.EscapeCharacters(_testName), duration + "ms"));
 }
示例#3
0
 public TestSuiteMessageLogger(string name)
 {
     Console.WriteLine(String.Format("##teamcity[testSuiteStarted name='{0}']", MessageLogger.EscapeCharacters(name)));
     _name = name;
 }
示例#4
0
 public ITestLogger WriteTestStarted(string testName)
 {
     Console.WriteLine(String.Format("##teamcity[testStarted name='{0}']", MessageLogger.EscapeCharacters(testName)));
     return(new TestMessageLogger(testName));
 }
示例#5
0
 public void WriteTestSuiteFinished()
 {
     Console.WriteLine(String.Format("##teamcity[testSuiteFinished name='{0}']", MessageLogger.EscapeCharacters(_name)));
 }
示例#6
0
 public void Setup()
 {
     _textMessageWriter = new TextMessageWriter();
     Console.SetOut(_textMessageWriter);
     _subject = new MessageLogger();
 }