public void Display(string prefix, string output, string error, int exitCode) { //xml message is proceeded with some other console info var startIndex = output.IndexOf("<?xml"); if (startIndex < 0) { _logger.WriteError("TEST", "nunit returned no xml output. Output was: " + output + " Error was: " + error); return; } output = output.Substring(startIndex); var xmlDoc = XDocument.Parse(output); foreach (XElement testSuite in xmlDoc.Root.Elements("test-suite")) { ProcessTestSuite(testSuite); } _logger.Write("TEST", String.Format("Run completed. Successfull: {0} Failed: {1} Ignored: {2}", successfull, failed, ignored)); }
public static void Write(string type, string message) { InternalLogger.Write(type, message); }
public void Write(string type, string message, params string[] items) { InternalLogger.Write(type, message, items); }