Search Results for

    Show / Hide Table of Contents

    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])]
    Inheritance
    object
    PlatformNames
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: NUnit.Framework
    Assembly: nunit.framework.dll
    Syntax
    public static class PlatformNames

    Fields

    View Source

    DotNET

    Platform: "NET"

    Declaration
    public const string DotNET = "NET"
    Field Value
    Type Description
    string
    View Source

    DotNETCore

    Platform: "NETCore"

    Declaration
    public const string DotNETCore = "NETCore"
    Field Value
    Type Description
    string
    View Source

    Linux

    Platform: "Linux"

    Declaration
    public const string Linux = "Linux"
    Field Value
    Type Description
    string
    View Source

    MacOSX

    Platform: "MacOSX"

    Declaration
    public const string MacOSX = "MacOSX"
    Field Value
    Type Description
    string
    View Source

    Mono

    Platform: "Mono"

    Declaration
    public const string Mono = "Mono"
    Field Value
    Type Description
    string
    View Source

    MonoTouch

    Platform: "MonoTouch"

    Declaration
    public const string MonoTouch = "MonoTouch"
    Field Value
    Type Description
    string
    View Source

    NET

    Platform: "NET"

    Declaration
    public const string NET = "NET"
    Field Value
    Type Description
    string
    View Source

    NETCore

    Platform: "NETCore"

    Declaration
    public const string NETCore = "NETCore"
    Field Value
    Type Description
    string
    View Source

    NT3

    Platform: "NT3"

    Declaration
    public const string NT3 = "NT3"
    Field Value
    Type Description
    string
    View Source

    NT4

    Platform: "NT4"

    Declaration
    public const string NT4 = "NT4"
    Field Value
    Type Description
    string
    View Source

    NT5

    Platform: "NT5"

    Declaration
    public const string NT5 = "NT5"
    Field Value
    Type Description
    string
    View Source

    NT6

    Platform: "NT6"

    Declaration
    public const string NT6 = "NT6"
    Field Value
    Type Description
    string
    View Source

    Rotor

    Platform: "Rotor"

    Declaration
    public const string Rotor = "Rotor"
    Field Value
    Type Description
    string
    View Source

    SSCLI

    Platform: "SSCLI"

    Declaration
    public const string SSCLI = "SSCLI"
    Field Value
    Type Description
    string
    View Source

    UNIX

    Platform: "UNIX"

    Declaration
    public const string UNIX = "UNIX"
    Field Value
    Type Description
    string
    View Source

    Vista

    Platform: "Vista"

    Declaration
    public const string Vista = "Vista"
    Field Value
    Type Description
    string
    View Source

    Win

    Platform: "Win"

    Declaration
    public const string Win = "Win"
    Field Value
    Type Description
    string
    View Source

    Win10

    Platform: "Win10"

    Declaration
    public const string Win10 = "Win10"
    Field Value
    Type Description
    string
    View Source

    Win11

    Platform: "Win11"

    Declaration
    public const string Win11 = "Win11"
    Field Value
    Type Description
    string
    View Source

    Win2003Server

    Platform: "Win2003Server"

    Declaration
    public const string Win2003Server = "Win2003Server"
    Field Value
    Type Description
    string
    View Source

    Win2008Server

    Platform: "Win2008Server"

    Declaration
    public const string Win2008Server = "Win2008Server"
    Field Value
    Type Description
    string
    View Source

    Win2008ServerR2

    Platform: "Win2008ServerR2"

    Declaration
    public const string Win2008ServerR2 = "Win2008ServerR2"
    Field Value
    Type Description
    string
    View Source

    Win2012Server

    Platform: "Win2012Server"

    Declaration
    public const string Win2012Server = "Win2012Server"
    Field Value
    Type Description
    string
    View Source

    Win2012ServerR2

    Platform: "Win2012ServerR2"

    Declaration
    public const string Win2012ServerR2 = "Win2012ServerR2"
    Field Value
    Type Description
    string
    View Source

    Win2K

    Platform: "Win2K"

    Declaration
    public const string Win2K = "Win2K"
    Field Value
    Type Description
    string
    View Source

    Win32

    Platform: "Win32"

    Declaration
    public const string Win32 = "Win32"
    Field Value
    Type Description
    string
    View Source

    Win32NT

    Platform: "Win32NT"

    Declaration
    public const string Win32NT = "Win32NT"
    Field Value
    Type Description
    string
    View Source

    Win32Windows

    Platform: "Win32Windows"

    Declaration
    public const string Win32Windows = "Win32Windows"
    Field Value
    Type Description
    string
    View Source

    Win32s

    Platform: "Win32s"

    Declaration
    public const string Win32s = "Win32s"
    Field Value
    Type Description
    string
    View Source

    Win7

    Platform: "Win7"

    Declaration
    public const string Win7 = "Win7"
    Field Value
    Type Description
    string
    View Source

    Win8

    Platform: "Win8"

    Declaration
    public const string Win8 = "Win8"
    Field Value
    Type Description
    string
    View Source

    Win81

    Platform: "Win8.1"

    Declaration
    public const string Win81 = "Win8.1"
    Field Value
    Type Description
    string
    View Source

    Win95

    Platform: "Win95"

    Declaration
    public const string Win95 = "Win95"
    Field Value
    Type Description
    string
    View Source

    Win98

    Platform: "Win98"

    Declaration
    public const string Win98 = "Win98"
    Field Value
    Type Description
    string
    View Source

    WinME

    Platform: "WinME"

    Declaration
    public const string WinME = "WinME"
    Field Value
    Type Description
    string
    View Source

    WinXP

    Platform: "WinXP"

    Declaration
    public const string WinXP = "WinXP"
    Field Value
    Type Description
    string
    View Source

    Windows10

    Platform: "Windows10"

    Declaration
    public const string Windows10 = "Windows10"
    Field Value
    Type Description
    string
    View Source

    Windows11

    Platform: "Windows11"

    Declaration
    public const string Windows11 = "Windows11"
    Field Value
    Type Description
    string
    View Source

    Windows7

    Platform: "Windows7"

    Declaration
    public const string Windows7 = "Windows7"
    Field Value
    Type Description
    string
    View Source

    Windows8

    Platform: "Windows8"

    Declaration
    public const string Windows8 = "Windows8"
    Field Value
    Type Description
    string
    View Source

    Windows81

    Platform: "Windows8.1"

    Declaration
    public const string Windows81 = "Windows8.1"
    Field Value
    Type Description
    string
    View Source

    WindowsServer10

    Platform: "WindowsServer10"

    Declaration
    public const string WindowsServer10 = "WindowsServer10"
    Field Value
    Type Description
    string
    View Source

    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
    View Source

    X32BitOS

    Platform: "32-bit-os"

    Declaration
    public const string X32BitOS = "32-bit-os"
    Field Value
    Type Description
    string
    View Source

    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
    View Source

    X64Bit

    Platform: "64-bit"

    Declaration
    public const string X64Bit = "64-bit"
    Field Value
    Type Description
    string
    View Source

    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
    View Source

    X64BitProcess

    Platform: "64-bit-process"

    Declaration
    public const string X64BitProcess = "64-bit-process"
    Field Value
    Type Description
    string
    View Source

    XBox

    Platform: "XBox"

    Declaration
    public const string XBox = "XBox"
    Field Value
    Type Description
    string
    • View Source
    In this article
    Back to top Generated by DocFX | Copyright (c) 2018- The NUnit Project - Licensed under CC BY-NC-SA 4.0