C# Class Open.TestHarness.Model.ViewTestClass

Represents a method decorated with the [ViewTestClass] attribute.
Inheritance: Open.Core.Common.ModelBase
Afficher le fichier Open project: philcockfield/Open.TestHarness.SL Class Usage Examples

Méthodes publiques

Méthode Description
Activate ( ) : bool

Loads the Type from the TypeName (if not already activated).

GetSingleton ( Type type, string xapFileName ) : ViewTestClass

Create a new singleton instance of the model.

GetSingleton ( string typeName, string customName, string assemblyName, string xapFileName ) : ViewTestClass

Create a new singleton instance of the model.

GetTestMethod ( string name ) : ViewTest

Gets the [ViewTest] method with the given name.

IsEquivalent ( Type compareType ) : bool

Determines whether the specified type is represented by this model.

IsEquivalent ( string typeName, string assemblyName ) : bool

Determines whether the specified values match this model.

Reload ( ) : void

Causes the a new test instance to be loaded.

ResetTests ( bool runDefaultTest ) : void

Resets the view tests.

ViewTestClass ( Type classType, string xapFileName ) : System
ViewTestClass ( string typeName, string customName, string assemblyName, string xapFileName ) : System

Méthodes protégées

Méthode Description
OnDisposed ( ) : void

Private Methods

Méthode Description
FireExecuteRequest ( ViewTest test ) : void
GetAssembly ( ) : Assembly
Initialize ( Type classType, string xapFileName ) : void
InitializeNames ( string typeName, string assemblyName, string xapFileName ) : void
OnTestExecuteRequest ( object sender, EventArgs e ) : void
PopulateViewTests ( ) : void
RaiseIsCurrentChanged ( ) : void

Method Details

Activate() public méthode

Loads the Type from the TypeName (if not already activated).
public Activate ( ) : bool
Résultat bool

GetSingleton() public static méthode

Create a new singleton instance of the model.
public static GetSingleton ( Type type, string xapFileName ) : ViewTestClass
type System.Type The type to model.
xapFileName string The name of the XAP file containing the class.
Résultat ViewTestClass

GetSingleton() public static méthode

Create a new singleton instance of the model.
public static GetSingleton ( string typeName, string customName, string assemblyName, string xapFileName ) : ViewTestClass
typeName string The full name of the type.
customName string The custom name of the attribute (Null if not required).
assemblyName string The assembly name.
xapFileName string The name of the XAP file containing the class.
Résultat ViewTestClass

GetTestMethod() public méthode

Gets the [ViewTest] method with the given name.
public GetTestMethod ( string name ) : ViewTest
name string The name of the method to retrieve.
Résultat ViewTest

IsEquivalent() public méthode

Determines whether the specified type is represented by this model.
public IsEquivalent ( Type compareType ) : bool
compareType System.Type
Résultat bool

IsEquivalent() public méthode

Determines whether the specified values match this model.
public IsEquivalent ( string typeName, string assemblyName ) : bool
typeName string The type name.
assemblyName string The assembly name.
Résultat bool

OnDisposed() protected méthode

protected OnDisposed ( ) : void
Résultat void

Reload() public méthode

Causes the a new test instance to be loaded.
public Reload ( ) : void
Résultat void

ResetTests() public méthode

Resets the view tests.
public ResetTests ( bool runDefaultTest ) : void
runDefaultTest bool Flag indicating if the default test should be executed.
Résultat void

ViewTestClass() public méthode

public ViewTestClass ( Type classType, string xapFileName ) : System
classType System.Type
xapFileName string
Résultat System

ViewTestClass() public méthode

public ViewTestClass ( string typeName, string customName, string assemblyName, string xapFileName ) : System
typeName string
customName string
assemblyName string
xapFileName string
Résultat System