<PackageReference Include="NUnit" Version="3.0.0-alpha-5" />

OSPlatform

public class OSPlatform
OSPlatform represents a particular operating system platform
public enum ProductType

Product Type Enumeration used for Windows

public static readonly PlatformID UnixPlatformID_Microsoft

Platform ID for Unix as defined by Microsoft .NET 2.0 and greater

public static readonly PlatformID UnixPlatformID_Mono

Platform ID for Unix as defined by Mono

public static OSPlatform CurrentPlatform { get; }

Get the OSPlatform under which we are currently running

public bool IsMacOSX { get; }

Return true if the platform is MacOSX

public bool IsNT3 { get; }

Return true if the platform is NT 3

public bool IsNT4 { get; }

Return true if the platform is NT 4

public bool IsNT5 { get; }

Return true if the platform is NT 5

public bool IsNT6 { get; }

Return true if the platform is NT 6

public bool IsNT60 { get; }

Return true if the platform is NT 6.0

public bool IsNT61 { get; }

Return true if the platform is NT 6.1

public bool IsNT62 { get; }

Return true if the platform is NT 6.2

public bool IsNT63 { get; }

Return true if the platform is NT 6.3

public bool IsUnix { get; }

Return true if this is a Unix or Linux platform

public bool IsVista { get; }

Return true if the platform is Vista

public bool IsWin2003Server { get; }

Return true if the platform is Windows 2003 Server

public bool IsWin2008Server { get; }

Return true if the platform is Windows 2008 Server (original or R2)

public bool IsWin2008ServerR1 { get; }

Return true if the platform is Windows 2008 Server (original)

public bool IsWin2008ServerR2 { get; }

Return true if the platform is Windows 2008 Server R2

public bool IsWin2012Server { get; }

Return true if the platform is Windows 2012 Server (original or R2)

public bool IsWin2012ServerR1 { get; }

Return true if the platform is Windows 2012 Server (original)

public bool IsWin2012ServerR2 { get; }

Return true if the platform is Windows 2012 Server R2

public bool IsWin2K { get; }

Return true if the platform is Windows 2000

public bool IsWin32NT { get; }

Return true if the platform is Win32NT

public bool IsWin32S { get; }

Return true if the platform is Win32S

public bool IsWin32Windows { get; }

Return true if the platform is Win32Windows

public bool IsWin95 { get; }

Return true if the platform is Windows 95

public bool IsWin98 { get; }

Return true if the platform is Windows 98

public bool IsWinCE { get; }

Return true if the platform is Windows CE

public bool IsWindows { get; }

Return true if this is a windows platform

public bool IsWindows7 { get; }

Return true if the platform is Windows 7

public bool IsWindows8 { get; }

Return true if the platform is Windows 8

public bool IsWindows81 { get; }

Return true if the platform is Windows 8

public bool IsWinME { get; }

Return true if the platform is Windows ME

public bool IsWinXP { get; }

Return true if the platform is Windows XP

public bool IsXbox { get; }

Return true if the platform is Xbox

public PlatformID Platform { get; }

Get the platform ID of this instance

public ProductType Product { get; }

Get the Product Type of this instance

public Version Version { get; }

Get the Version of this instance

public OSPlatform(PlatformID platform, Version version)

Construct from a platform ID and version

public OSPlatform(PlatformID platform, Version version, ProductType product)

Construct from a platform ID, version and product type