You've already forked linux-packaging-mono
acceptance-tests
data
debian
docs
eglib
external
ikvm-native
libgc
llvm
m4
man
mcs
build
class
docs
errors
ilasm
jay
mcs
nunit24
ClientUtilities
ConsoleRunner
NUnitCore
NUnitExtensions
NUnitFramework
framework
Constraints
SyntaxHelpers
AbstractAsserter.cs
AssemblyInfo.cs
Assert.cs.REMOVED.git-id
Assertion.cs
AssertionException.cs
AssertionFailureMessage.cs
AssertionHelper.cs
CategoryAttribute.cs
CollectionAssert.cs
DescriptionAttribute.cs
ExpectedExceptionAttribute.cs
ExplicitAttribute.cs
FileAssert.cs
GlobalSettings.cs
IAsserter.cs
IExpectException.cs
IgnoreAttribute.cs
IgnoreException.cs
IncludeExcludeAttributes.cs
Makefile
MessageWriter.cs
MsgUtils.cs
NUnit.Framework.dll.sources
OldTestCase.cs
PropertyAttribute.cs
SetCultureAttribute.cs
SetUpAttribute.cs
SetUpFixtureAttribute.cs
StringAssert.cs
SuiteAttribute.cs
TearDownAttribute.cs
TestAttribute.cs
TestFixtureAttribute.cs
TestFixtureSetUpAttribute.cs
TestFixtureTearDownAttribute.cs
TextMessageWriter.cs
nunit.framework.dll.csproj
nunit.framework.dll_VS2005.csproj
NUnitMocks
CommonAssemblyInfo.cs
Makefile
license.rtf
nunit.sln
nunit.snk
nunit_VS2005.sln
packages
tests
tools
AUTHORS
COPYING
INSTALL.txt
Makefile
MonoIcon.png
README
ScalableMonoIcon.svg
mkinstalldirs
mono
msvc
po
runtime
samples
scripts
support
tools
COPYING.LIB
LICENSE
Makefile.am
Makefile.in
NEWS
README.md
acinclude.m4
aclocal.m4
autogen.sh
code_of_conduct.md
compile
config.guess
config.h.in
config.rpath
config.sub
configure.REMOVED.git-id
configure.ac.REMOVED.git-id
depcomp
install-sh
ltmain.sh.REMOVED.git-id
missing
mkinstalldirs
mono-uninstalled.pc.in
test-driver
winconfig.h
48 lines
1.4 KiB
C#
48 lines
1.4 KiB
C#
![]() |
// ****************************************************************
|
||
|
// 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
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 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.
|
||
|
/// </summary>
|
||
|
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method|AttributeTargets.Assembly, AllowMultiple=false)]
|
||
|
public class ExplicitAttribute : Attribute
|
||
|
{
|
||
|
private string reason;
|
||
|
|
||
|
/// <summary>
|
||
|
/// Default constructor
|
||
|
/// </summary>
|
||
|
public ExplicitAttribute()
|
||
|
{
|
||
|
this.reason = "";
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// Constructor with a reason
|
||
|
/// </summary>
|
||
|
/// <param name="reason">The reason test is marked explicit</param>
|
||
|
public ExplicitAttribute(string reason)
|
||
|
{
|
||
|
this.reason = reason;
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// The reason test is marked explicit
|
||
|
/// </summary>
|
||
|
public string Reason
|
||
|
{
|
||
|
get { return reason; }
|
||
|
}
|
||
|
}
|
||
|
}
|