C# Класс Open.Testing.Models.PackageInfo

Represents a package of tests from a single JavaScript file.
Test classes will only be picked up if the declared initMethod registers them by using the 'RegisterClass()' method, eg: Testing.RegisterClass(typeof(MyClass1));
Наследование: Open.Core.ModelBase, IEnumerable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddClass ( Type testClass ) : void

Adds a test-class to the package.

Contains ( Type testClass ) : bool

Determines whether the test-class has already been added to the package.

GetEnumerator ( ) : IEnumerator
GetTestClassDef ( Type testClass ) : ClassInfo

Determines whether the test-class has already been added to the package.

SingletonFromUrl ( string initMethod, string scriptUrl ) : PackageInfo

Retrieves (or creates) the singleton instance of the definition for the given package type.

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

Метод Описание
GetName ( string scriptUrl ) : string
PackageInfo ( string initMethod, string scriptUrl ) : System

Constructor.

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

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

Adds a test-class to the package.
public AddClass ( Type testClass ) : void
testClass System.Type The type of the test class.
Результат void

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

Determines whether the test-class has already been added to the package.
public Contains ( Type testClass ) : bool
testClass System.Type The type of the test class.
Результат bool

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

public GetEnumerator ( ) : IEnumerator
Результат IEnumerator

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

Determines whether the test-class has already been added to the package.
public GetTestClassDef ( Type testClass ) : ClassInfo
testClass System.Type The type of the test class.
Результат ClassInfo

SingletonFromUrl() публичный статический Метод

Retrieves (or creates) the singleton instance of the definition for the given package type.
public static SingletonFromUrl ( string initMethod, string scriptUrl ) : PackageInfo
initMethod string The entry point method to invoke upon load completion.
scriptUrl string The URL to the JavaScript file to load.
Результат PackageInfo