C# Class 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));
Inheritance: Open.Core.ModelBase, IEnumerable
Mostra file Open project: philcockfield/Open.TestHarness.SL Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
GetName ( string scriptUrl ) : string
PackageInfo ( string initMethod, string scriptUrl ) : System

Constructor.

Method Details

AddClass() public method

Adds a test-class to the package.
public AddClass ( Type testClass ) : void
testClass System.Type The type of the test class.
return void

Contains() public method

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.
return bool

GetEnumerator() public method

public GetEnumerator ( ) : IEnumerator
return IEnumerator

GetTestClassDef() public method

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.
return ClassInfo

SingletonFromUrl() public static method

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.
return PackageInfo