C# Class Open.TestHarness.Model.ViewTestClass

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

Public Methods

Method 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

Protected Methods

Method Description
OnDisposed ( ) : void

Private Methods

Method 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 method

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

GetSingleton() public static method

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

GetSingleton() public static method

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

GetTestMethod() public method

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

IsEquivalent() public method

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

IsEquivalent() public method

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

OnDisposed() protected method

protected OnDisposed ( ) : void
return void

Reload() public method

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

ResetTests() public method

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

ViewTestClass() public method

public ViewTestClass ( Type classType, string xapFileName ) : System
classType System.Type
xapFileName string
return System

ViewTestClass() public method

public ViewTestClass ( string typeName, string customName, string assemblyName, string xapFileName ) : System
typeName string
customName string
assemblyName string
xapFileName string
return System