1 // ****************************************************************
\r
2 // This is free software licensed under the NUnit license. You
\r
3 // may obtain a copy of the license as well as information regarding
\r
4 // copyright ownership at http://nunit.org/?p=license&r=2.4.
\r
5 // ****************************************************************
\r
13 /// TestCaseResult represents the result of a test case execution
\r
16 public class TestCaseResult : TestResult
\r
19 /// Construct a result for a test case
\r
21 /// <param name="testCase">The test case for which this is a result</param>
\r
22 public TestCaseResult(TestInfo testCase)
\r
23 : base(testCase, testCase.TestName.FullName) { }
\r
26 /// Construct a result from a string - used for tests
\r
28 /// <param name="testCaseString"></param>
\r
29 public TestCaseResult(string testCaseString)
\r
30 : base(null, testCaseString) { }
\r
33 /// Accept a ResultVisitor
\r
35 /// <param name="visitor">The visitor to accept</param>
\r
36 public override void Accept(ResultVisitor visitor)
\r
38 visitor.Visit(this);
\r