Наследование: 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();
 }