Ejemplo n.º 1
0
 public Test(string name, TestsResult result, string build, string buildNumber, string linkToLogzIo, string exception)
 {
     Name = name;
     Build = build;
     BuildNumber = buildNumber;
     LinkToLogzIo = linkToLogzIo;
     Result = result;
     Error = exception;
 }
Ejemplo n.º 2
0
        private static string getTestName(List<string> testLines, TestsResult result, string exception)
        {
            const string startWith = " Test name: ";
            string line = getLineThatStartWith(testLines, startWith);
            string testName = line.Replace(startWith, "");
            testName = string.Format("{0}{1}{2}{3} {2}", ReplacePlaceHolders.SPAN_GREEN, testName,
                ReplacePlaceHolders.CLOSE_SPAN, ReplacePlaceHolders.SPAN_RED);
            testName += result == TestsResult.Failed ? TestHelper.GetEndOfTestName(exception) : "";

            return testName;
        }