C# Class Open.Testing.TestHarness

Shared functionality for working with the TestHarness (so that test assemblies don't have to reference to TestHarness project [and corresponding dependences]).
Mostrar archivo Open project: philcockfield/Open.TestHarness.SL

Private Properties

Property Type Description
AddElement jQueryObject
FireControlAdded void

Public Methods

Method Description
AddControl ( IView control ) : IView

Adds a visual control to the host canvas.

AddElement ( jQueryObject element ) : jQueryObject

Adds an HTML element to the host canvas.

AddModel ( IViewFactory model ) : IView

Adds the view created from the given model to the host canvas.

RegisterClass ( Type testClass ) : void

Registers a test-class with the harness.

Reset ( ) : void

Clears the controls from the host canvas and resets to orginal state.

UpdateLayout ( ) : void

Forces the display canvas to run it's layout routine.

Private Methods

Method Description
AddElement ( ) : jQueryObject
FireControlAdded ( IView control, jQueryObject element ) : void

Method Details

AddControl() public static method

Adds a visual control to the host canvas.
public static AddControl ( IView control ) : IView
control IView The control to add.
return IView

AddElement() public static method

Adds an HTML element to the host canvas.
public static AddElement ( jQueryObject element ) : jQueryObject
element jQueryObject The HTML content of the control.
return jQueryObject

AddModel() public static method

Adds the view created from the given model to the host canvas.
public static AddModel ( IViewFactory model ) : IView
model IViewFactory The model to add.
return IView

RegisterClass() public static method

Registers a test-class with the harness.
public static RegisterClass ( Type testClass ) : void
testClass System.Type The type of the test class.
return void

Reset() public static method

Clears the controls from the host canvas and resets to orginal state.
public static Reset ( ) : void
return void

UpdateLayout() public static method

Forces the display canvas to run it's layout routine.
public static UpdateLayout ( ) : void
return void