~nunit-core/nunitv2/2.5

« back to all changes in this revision

Viewing changes to src/NUnitFramework/core/NotRunnableTestCase.cs

  • Committer: jnewkirk
  • Date: 2002-07-10 20:00:13 UTC
  • Revision ID: vcs-imports@canonical.com-20020710200013-j8us5mbi0usp7p02
initialĀ load

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
using System;
 
2
using System.Reflection;
 
3
using System.Diagnostics;
 
4
 
 
5
namespace Nunit.Core
 
6
{
 
7
        /// <summary>
 
8
        /// Summary description for NotRunnableTestCase.
 
9
        /// </summary>
 
10
        public class NotRunnableTestCase : TestCase
 
11
        {
 
12
                public NotRunnableTestCase(MethodInfo method, string reason) : base(method.DeclaringType.FullName, method.Name)
 
13
                {
 
14
                        ShouldRun = false;
 
15
                        IgnoreReason = reason;
 
16
                }
 
17
 
 
18
                public override void Run(TestCaseResult result)
 
19
                {
 
20
                        result.NotRun(base.IgnoreReason);
 
21
                }
 
22
        }
 
23
}