~nunit-core/nunitv2/2.5

« back to all changes in this revision

Viewing changes to src/NUnitFramework/framework/IgnoreAttribute.cs

  • Committer: jnewkirk
  • Date: 2002-07-10 20:05:24 UTC
  • Revision ID: vcs-imports@canonical.com-20020710200524-z33q2om2qvsgs6kg
initialĀ load

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//
 
2
// Copyright (C) 2002. James W. Newkirk, Michael C. Two, Alexei A. Vorontsov. All Rights Reserved.
 
3
//
 
4
namespace Nunit.Framework
 
5
{
 
6
        using System;
 
7
        /// <summary>
 
8
        /// IgnoreAttribute.
 
9
        /// </summary>
 
10
        /// 
 
11
        [AttributeUsage(AttributeTargets.Method|AttributeTargets.Class, AllowMultiple=false)]
 
12
        public sealed class IgnoreAttribute : Attribute
 
13
        {
 
14
                private string reason;
 
15
 
 
16
                public IgnoreAttribute(string reason)
 
17
                {
 
18
                        this.reason = reason;
 
19
                }
 
20
 
 
21
                public string Reason
 
22
                {
 
23
                        get { return reason; }
 
24
                }
 
25
        }
 
26
}