C# Class Microsoft.Silverlight.Testing.Client.TestPage

A user control that should be used as the root visual for a Silverlight plugin if developers would like to use the advanced TestSurface functionality within Microsoft.Silverlight.Testing. The TestSurface is automatically cleared after each test scenario completes, eliminating the need for many additional cleanup methods.
Inheritance: System.Windows.Controls.UserControl, ITestPage
Show file Open project: garyjohnson/wpnest

Public Methods

Method Description
TestPage ( ) : System

Initializes the TestPage object.

TestPage ( UnitTestHarness harness ) : System

Initializes the TestPage object.

Protected Methods

Method Description
OnClipboardButtonClick ( object sender, EventArgs e ) : void

Offers clipboard interface support for copying test run results.

OnInstallClick ( object sender, EventArgs e ) : void

Installs the application.

OnTagExpressionSelected ( object sender, TagExpressionEventArgs e ) : void

Handles the completion event on the tag expression editor to begin the test run using the user-provided settings.

Private Methods

Method Description
ExpandCollapseTestStage ( bool expand ) : void

Expand and collapse the test stage.

OnPlayPauseClick ( object sender, RoutedEventArgs e ) : void

Handles the click on a play/pause button for the run dispatcher.

OnResultNavigationClick ( object sender, RoutedEventArgs e ) : void

Handles navigation back or forward.

OnTestAssemblyStarting ( object sender, TestAssemblyStartingEventArgs e ) : void

Handles the test assembly starting event to expand the test stage height.

OnTestHarnessCompleted ( object sender, Microsoft.Silverlight.Testing.Harness.TestHarnessCompletedEventArgs e ) : void

Handles the test harness complete event, to display results.

OnTestMethodCompleted ( object sender, TestMethodCompletedEventArgs e ) : void

Handles the completion of a test method.

OnTestStageExpanderClick ( object sender, EventArgs e ) : void

Handles the click on the test stage.

SetClipboardText ( string text ) : void

Copies text into the clipboard. If the Silverlight runtime on the system does not support the clipboard API, then it reverts to a large text box that allows the user to manually copy and paste.

StartTestRun ( ) : void

Starts the test run.

StartupMonitor ( object sender, EventArgs e ) : void

Waits for the Settings to become available, either by the service or system setting the instance property.

Method Details

OnClipboardButtonClick() protected method

Offers clipboard interface support for copying test run results.
protected OnClipboardButtonClick ( object sender, EventArgs e ) : void
sender object The source object.
e System.EventArgs The event arguments.
return void

OnInstallClick() protected method

Installs the application.
protected OnInstallClick ( object sender, EventArgs e ) : void
sender object The source object.
e System.EventArgs The event arguments.
return void

OnTagExpressionSelected() protected method

Handles the completion event on the tag expression editor to begin the test run using the user-provided settings.
protected OnTagExpressionSelected ( object sender, TagExpressionEventArgs e ) : void
sender object The source object.
e TagExpressionEventArgs The event arguments.
return void

TestPage() public method

Initializes the TestPage object.
public TestPage ( ) : System
return System

TestPage() public method

Initializes the TestPage object.
public TestPage ( UnitTestHarness harness ) : System
harness Microsoft.Silverlight.Testing.Harness.UnitTestHarness The test harness instance.
return System