using System;
namespace NUnit.Framework
{
///
/// PlatformAttribute is used to mark a test fixture or an
/// individual method as applying to a particular platform only.
///
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple=false)]
public sealed class PlatformAttribute : Attribute
{
private string include;
private string exclude;
///
/// Constructor with no platforms specified, for use
/// with named property syntax.
///
public PlatformAttribute() { }
///
/// Constructor taking one or more platforms
///
/// Comma-deliminted list of platforms
public PlatformAttribute( string platforms )
{
this.include = platforms;
}
///
/// Name of the platform that is needed in order for
/// a test to run. Multiple platforms may be given,
/// separated by a comma.
///
public string Include
{
get { return this.include; }
set { include = value; }
}
///
/// Name of the platform to be excluded. Multiple platforms
/// may be given, separated by a comma.
///
public string Exclude
{
get { return this.exclude; }
set { this.exclude = value; }
}
}
}