C# Класс NUnit.Framework.Internal.PlatformHelper

PlatformHelper class is used by the PlatformAttribute class to determine whether a platform is supported.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
RuntimePlatforms string

Открытые методы

Метод Описание
IsPlatformSupported ( PlatformAttribute platformAttribute ) : bool

Tests to determine if the current platform is supported based on a platform attribute.

IsPlatformSupported ( TestCaseAttribute testCaseAttribute ) : bool

Tests to determine if the current platform is supported based on a platform attribute.

IsPlatformSupported ( string platforms ) : bool

Test to determine if one of a collection of platforms is being used currently.

PlatformHelper ( ) : System

Default constructor uses the operating system and common language runtime of the system.

PlatformHelper ( OSPlatform os, RuntimeFramework rt ) : System

Construct a PlatformHelper for a particular operating system and common language runtime. Used in testing.

Приватные методы

Метод Описание
IsPlatformSupported ( string include, string exclude ) : bool
IsRuntimeSupported ( RuntimeType runtime, string versionSpecification ) : bool
IsRuntimeSupported ( string platformName ) : bool

Описание методов

IsPlatformSupported() публичный Метод

Tests to determine if the current platform is supported based on a platform attribute.
public IsPlatformSupported ( PlatformAttribute platformAttribute ) : bool
platformAttribute PlatformAttribute The attribute to examine
Результат bool

IsPlatformSupported() публичный Метод

Tests to determine if the current platform is supported based on a platform attribute.
public IsPlatformSupported ( TestCaseAttribute testCaseAttribute ) : bool
testCaseAttribute TestCaseAttribute The attribute to examine
Результат bool

IsPlatformSupported() публичный Метод

Test to determine if one of a collection of platforms is being used currently.
public IsPlatformSupported ( string platforms ) : bool
platforms string
Результат bool

PlatformHelper() публичный Метод

Default constructor uses the operating system and common language runtime of the system.
public PlatformHelper ( ) : System
Результат System

PlatformHelper() публичный Метод

Construct a PlatformHelper for a particular operating system and common language runtime. Used in testing.
public PlatformHelper ( OSPlatform os, RuntimeFramework rt ) : System
os OSPlatform OperatingSystem to be used
rt RuntimeFramework RuntimeFramework to be used
Результат System

Описание свойств

RuntimePlatforms публичное статическое свойство

Comma-delimited list of all supported Runtime platform constants
public static string RuntimePlatforms
Результат string