IncludeExcludeAttribute
Abstract base for attributes that are used to include tests in
the test run based on environmental settings.
using System.
Runtime.
CompilerServices;
namespace NUnit.
Framework
{
[
NullableContext(
2)]
[
Nullable(
0)]
public abstract class IncludeExcludeAttribute :
NUnitAttribute
{
private string _include;
private string _exclude;
private string _reason;
public string Include {
get {
return _include;
}
set {
_include =
value;
}
}
public string Exclude {
get {
return _exclude;
}
set {
_exclude =
value;
}
}
public string Reason {
get {
return _reason;
}
set {
_reason =
value;
}
}
public IncludeExcludeAttribute()
{
}
public IncludeExcludeAttribute(
string include)
{
_include =
include;
}
}
}