2
// Copyright (C) 2002. James W. Newkirk, Michael C. Two, Alexei A. Vorontsov. All Rights Reserved.
14
public class TestCaseResult : TestResult
16
private TestCase testCase;
17
private string testCaseName;
18
private bool testExecuted;
19
private string message;
20
private string stackTrace;
22
public TestCaseResult(TestCase testCase):base(testCase, testCase.FullName)
24
this.testCase = testCase;
28
public TestCaseResult(string testCaseString) : base(null, testCaseString)
32
testCaseName = testCaseString;
37
get { return testExecuted; }
46
public override void NotRun(string reason)
52
public void Failure(string message, string stackTrace)
56
this.message = message;
57
this.stackTrace = stackTrace;
60
public override string Message
62
get { return message; }
65
public override string StackTrace
73
public override string ToString()
75
StringBuilder builder = new StringBuilder();
76
string name = testCaseName;
78
name = testCase.FullName;
80
builder.AppendFormat("{0} : " , name);
82
builder.Append(message);
84
return builder.ToString();
87
public override void Accept(ResultVisitor visitor)