Class PlatformNames
Canonical platform names for use with PlatformAttribute. Note that
the platforms argument to PlatformAttribute supports
syntax beyond just naming platforms, such as comma-delimited lists, but using
these constants ensure that the precise name of a platform cannot be mistyped
or misspelled.
[Platform(Include = PlatformNames.Linux)]
// or
[Platform(Excludes = [PlatformNames.Mono,PlatformNames.MonoTouch])]
Inherited Members
Namespace: NUnit.Framework
Assembly: nunit.framework.dll
Syntax
public static class PlatformNames
Fields
View SourceDotNET
Platform: "NET"
Declaration
public const string DotNET = "NET"
Field Value
| Type | Description |
|---|---|
| string |
DotNETCore
Platform: "NETCore"
Declaration
public const string DotNETCore = "NETCore"
Field Value
| Type | Description |
|---|---|
| string |
Linux
Platform: "Linux"
Declaration
public const string Linux = "Linux"
Field Value
| Type | Description |
|---|---|
| string |
MacOSX
Platform: "MacOSX"
Declaration
public const string MacOSX = "MacOSX"
Field Value
| Type | Description |
|---|---|
| string |
Mono
Platform: "Mono"
Declaration
public const string Mono = "Mono"
Field Value
| Type | Description |
|---|---|
| string |
MonoTouch
Platform: "MonoTouch"
Declaration
public const string MonoTouch = "MonoTouch"
Field Value
| Type | Description |
|---|---|
| string |
NET
Platform: "NET"
Declaration
public const string NET = "NET"
Field Value
| Type | Description |
|---|---|
| string |
NETCore
Platform: "NETCore"
Declaration
public const string NETCore = "NETCore"
Field Value
| Type | Description |
|---|---|
| string |
NT3
Platform: "NT3"
Declaration
public const string NT3 = "NT3"
Field Value
| Type | Description |
|---|---|
| string |
NT4
Platform: "NT4"
Declaration
public const string NT4 = "NT4"
Field Value
| Type | Description |
|---|---|
| string |
NT5
Platform: "NT5"
Declaration
public const string NT5 = "NT5"
Field Value
| Type | Description |
|---|---|
| string |
NT6
Platform: "NT6"
Declaration
public const string NT6 = "NT6"
Field Value
| Type | Description |
|---|---|
| string |
Rotor
Platform: "Rotor"
Declaration
public const string Rotor = "Rotor"
Field Value
| Type | Description |
|---|---|
| string |
SSCLI
Platform: "SSCLI"
Declaration
public const string SSCLI = "SSCLI"
Field Value
| Type | Description |
|---|---|
| string |
UNIX
Platform: "UNIX"
Declaration
public const string UNIX = "UNIX"
Field Value
| Type | Description |
|---|---|
| string |
Vista
Platform: "Vista"
Declaration
public const string Vista = "Vista"
Field Value
| Type | Description |
|---|---|
| string |
Win
Platform: "Win"
Declaration
public const string Win = "Win"
Field Value
| Type | Description |
|---|---|
| string |
Win10
Platform: "Win10"
Declaration
public const string Win10 = "Win10"
Field Value
| Type | Description |
|---|---|
| string |
Win11
Platform: "Win11"
Declaration
public const string Win11 = "Win11"
Field Value
| Type | Description |
|---|---|
| string |
Win2003Server
Platform: "Win2003Server"
Declaration
public const string Win2003Server = "Win2003Server"
Field Value
| Type | Description |
|---|---|
| string |
Win2008Server
Platform: "Win2008Server"
Declaration
public const string Win2008Server = "Win2008Server"
Field Value
| Type | Description |
|---|---|
| string |
Win2008ServerR2
Platform: "Win2008ServerR2"
Declaration
public const string Win2008ServerR2 = "Win2008ServerR2"
Field Value
| Type | Description |
|---|---|
| string |
Win2012Server
Platform: "Win2012Server"
Declaration
public const string Win2012Server = "Win2012Server"
Field Value
| Type | Description |
|---|---|
| string |
Win2012ServerR2
Platform: "Win2012ServerR2"
Declaration
public const string Win2012ServerR2 = "Win2012ServerR2"
Field Value
| Type | Description |
|---|---|
| string |
Win2K
Platform: "Win2K"
Declaration
public const string Win2K = "Win2K"
Field Value
| Type | Description |
|---|---|
| string |
Win32
Platform: "Win32"
Declaration
public const string Win32 = "Win32"
Field Value
| Type | Description |
|---|---|
| string |
Win32NT
Platform: "Win32NT"
Declaration
public const string Win32NT = "Win32NT"
Field Value
| Type | Description |
|---|---|
| string |
Win32Windows
Platform: "Win32Windows"
Declaration
public const string Win32Windows = "Win32Windows"
Field Value
| Type | Description |
|---|---|
| string |
Win32s
Platform: "Win32s"
Declaration
public const string Win32s = "Win32s"
Field Value
| Type | Description |
|---|---|
| string |
Win7
Platform: "Win7"
Declaration
public const string Win7 = "Win7"
Field Value
| Type | Description |
|---|---|
| string |
Win8
Platform: "Win8"
Declaration
public const string Win8 = "Win8"
Field Value
| Type | Description |
|---|---|
| string |
Win81
Platform: "Win8.1"
Declaration
public const string Win81 = "Win8.1"
Field Value
| Type | Description |
|---|---|
| string |
Win95
Platform: "Win95"
Declaration
public const string Win95 = "Win95"
Field Value
| Type | Description |
|---|---|
| string |
Win98
Platform: "Win98"
Declaration
public const string Win98 = "Win98"
Field Value
| Type | Description |
|---|---|
| string |
WinME
Platform: "WinME"
Declaration
public const string WinME = "WinME"
Field Value
| Type | Description |
|---|---|
| string |
WinXP
Platform: "WinXP"
Declaration
public const string WinXP = "WinXP"
Field Value
| Type | Description |
|---|---|
| string |
Windows10
Platform: "Windows10"
Declaration
public const string Windows10 = "Windows10"
Field Value
| Type | Description |
|---|---|
| string |
Windows11
Platform: "Windows11"
Declaration
public const string Windows11 = "Windows11"
Field Value
| Type | Description |
|---|---|
| string |
Windows7
Platform: "Windows7"
Declaration
public const string Windows7 = "Windows7"
Field Value
| Type | Description |
|---|---|
| string |
Windows8
Platform: "Windows8"
Declaration
public const string Windows8 = "Windows8"
Field Value
| Type | Description |
|---|---|
| string |
Windows81
Platform: "Windows8.1"
Declaration
public const string Windows81 = "Windows8.1"
Field Value
| Type | Description |
|---|---|
| string |
WindowsServer10
Platform: "WindowsServer10"
Declaration
public const string WindowsServer10 = "WindowsServer10"
Field Value
| Type | Description |
|---|---|
| string |
X32Bit
Platform: "32-bit"
Specifies a 32-bit testing host process, regardless of the word size of the machine.
Declaration
public const string X32Bit = "32-bit"
Field Value
| Type | Description |
|---|---|
| string |
X32BitOS
Platform: "32-bit-os"
Declaration
public const string X32BitOS = "32-bit-os"
Field Value
| Type | Description |
|---|---|
| string |
X32BitProcess
Platform: "32-bit-process"
Specifies a 32-bit testing host process, regardless of the word size of the machine.
Declaration
public const string X32BitProcess = "32-bit-process"
Field Value
| Type | Description |
|---|---|
| string |
X64Bit
Platform: "64-bit"
Declaration
public const string X64Bit = "64-bit"
Field Value
| Type | Description |
|---|---|
| string |
X64BitOS
Platform: "64-bit-os"
Specifies a 64-bit machine, regardless of the word size of the testing host process.
Declaration
public const string X64BitOS = "64-bit-os"
Field Value
| Type | Description |
|---|---|
| string |
X64BitProcess
Platform: "64-bit-process"
Declaration
public const string X64BitProcess = "64-bit-process"
Field Value
| Type | Description |
|---|---|
| string |
XBox
Platform: "XBox"
Declaration
public const string XBox = "XBox"
Field Value
| Type | Description |
|---|---|
| string |