Пример #1
0
 public override void BuildErrorList(ReportBuilder builder, Test test)
 {
     builder.AppendLine(String.Format("\t({0}) {1}",test.Result.Failure.Number, test.Name));
     builder.AppendLine("\t #Reason");
     builder.AppendLine("\t\t" + test.Result.Failure.ExceptionMessage);
     builder.AppendLine();
     builder.AppendLine("\t #StackTrace");
     foreach(String trace in test.Result.Failure.ExceptionStackFrames)
     {
         builder.AppendLine("\t\t" + trace);
     }
 }
Пример #2
0
 public override void BuildTestSuiteHeader(ReportBuilder builder, TestSuite suite)
 {
     builder.AppendLine("#" + suite.Name);
 }
Пример #3
0
 public override void BuildTestSuccess(ReportBuilder builder, Test test)
 {
     builder.AppendLine("\t✔ " + test.Name + "(" + test.Result.TimeTaken + "ms)");
 }
Пример #4
0
 public override void BuildTestSkipped(ReportBuilder builder, Test test)
 {
     builder.AppendLine("\t∼ " + test.Name);
 }
Пример #5
0
 public override void BuildTestFailure(ReportBuilder builder, Test test)
 {
     builder.AppendLine(String.Format("\t✖ ({0}) {1}",test.Result.Failure.Number, test.Name));
 }
Пример #6
0
 public override void BuildHeader(ReportBuilder builder)
 {
     builder.AppendLine("##Test Results")
         .AppendLine();
 }
Пример #7
0
 public override void BuildErrorListHeader(ReportBuilder builder, TestRunner runner)
 {
     builder.AppendLine("##Failed Test Reasons")
         .AppendLine();
 }