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")); }
public TestSuiteMessageLogger(string name) { Console.WriteLine(String.Format("##teamcity[testSuiteStarted name='{0}']", MessageLogger.EscapeCharacters(name))); _name = name; }
public ITestLogger WriteTestStarted(string testName) { Console.WriteLine(String.Format("##teamcity[testStarted name='{0}']", MessageLogger.EscapeCharacters(testName))); return(new TestMessageLogger(testName)); }
public void WriteTestSuiteFinished() { Console.WriteLine(String.Format("##teamcity[testSuiteFinished name='{0}']", MessageLogger.EscapeCharacters(_name))); }
public void Setup() { _textMessageWriter = new TextMessageWriter(); Console.SetOut(_textMessageWriter); _subject = new MessageLogger(); }