2010-06-03 Jb Evain <jbevain@novell.com>
[mcs.git] / nunit24 / NUnitCore / interfaces / TestCaseResult.cs
blob1aa183f30845f31d640eece4fd36f94bb7e805cb
1 // ****************************************************************
2 // This is free software licensed under the NUnit license. You
3 // may obtain a copy of the license as well as information regarding
4 // copyright ownership at http://nunit.org/?p=license&r=2.4.
5 // ****************************************************************
7 namespace NUnit.Core
9 using System;
10 using System.Text;
12 /// <summary>
13 /// TestCaseResult represents the result of a test case execution
14 /// </summary>
15 [Serializable]
16 public class TestCaseResult : TestResult
18 /// <summary>
19 /// Construct a result for a test case
20 /// </summary>
21 /// <param name="testCase">The test case for which this is a result</param>
22 public TestCaseResult(TestInfo testCase)
23 : base(testCase, testCase.TestName.FullName) { }
25 /// <summary>
26 /// Construct a result from a string - used for tests
27 /// </summary>
28 /// <param name="testCaseString"></param>
29 public TestCaseResult(string testCaseString)
30 : base(null, testCaseString) { }
32 /// <summary>
33 /// Accept a ResultVisitor
34 /// </summary>
35 /// <param name="visitor">The visitor to accept</param>
36 public override void Accept(ResultVisitor visitor)
38 visitor.Visit(this);