// ****************************************************************
// Copyright 2007, Charlie Poole
// This is free software licensed under the NUnit license. You may
// obtain a copy of the license at http://nunit.org/?p=license&r=2.4
// ****************************************************************
using System;
namespace NUnit.Framework
{
///
/// ExplicitAttribute marks a test or test fixture so that it will
/// only be run if explicitly executed from the gui or command line
/// or if it is included by use of a filter. The test will not be
/// run simply because an enclosing suite is run.
///
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method|AttributeTargets.Assembly, AllowMultiple=false)]
public class ExplicitAttribute : Attribute
{
private string reason;
///
/// Default constructor
///
public ExplicitAttribute()
{
this.reason = "";
}
///
/// Constructor with a reason
///
/// The reason test is marked explicit
public ExplicitAttribute(string reason)
{
this.reason = reason;
}
///
/// The reason test is marked explicit
///
public string Reason
{
get { return reason; }
}
}
}