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
파일 보기 프로젝트 열기: philcockfield/Open.TestHarness.SL 1 사용 예제들

공개 메소드들

메소드 설명
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