C# Class NUnit.Extensions.Asp.AspTester.ImageButtonTester

Tester for System.Web.UI.WebControls.ImageButton
Inheritance: AspControlTester
Show file Open project: vcsjones/NUnitAsp Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Click ( ) : void

Click the button at coordinates (0, 0).

Click ( int x, int y ) : void

Click the button in a particular location. The 'x' coordinate of the simulated mouse click. The 'y' coordinate of the simulated mouse click.

ImageButtonTester ( string aspId ) : NUnit.Extensions.Asp.HtmlTester

Create a tester for a top-level control. Use this constructor for testing most controls. Testers created with this constructor will test pages loaded by the HttpClient.Default HttpClient.

ImageButtonTester ( string aspId, Tester container ) : NUnit.Extensions.Asp.HtmlTester

Create a tester for a nested control. Use this constructor when the control you are testing is nested within another control, such as a DataGrid or UserControl. You should also use this constructor when you're not using the HttpClient.Default HttpClient.

Method Details

Click() public method

Click the button at coordinates (0, 0).
public Click ( ) : void
return void

Click() public method

Click the button in a particular location. The 'x' coordinate of the simulated mouse click. The 'y' coordinate of the simulated mouse click.
public Click ( int x, int y ) : void
x int
y int
return void

ImageButtonTester() public method

Create a tester for a top-level control. Use this constructor for testing most controls. Testers created with this constructor will test pages loaded by the HttpClient.Default HttpClient.

public ImageButtonTester ( string aspId ) : NUnit.Extensions.Asp.HtmlTester
aspId string The ID of the control to test (look in the /// page's ASP.NET source code for the ID).
return NUnit.Extensions.Asp.HtmlTester

ImageButtonTester() public method

Create a tester for a nested control. Use this constructor when the control you are testing is nested within another control, such as a DataGrid or UserControl. You should also use this constructor when you're not using the HttpClient.Default HttpClient.
public ImageButtonTester ( string aspId, Tester container ) : NUnit.Extensions.Asp.HtmlTester
aspId string The ID of the control to test (look in the /// page's ASP.NET source code for the ID).
container Tester A tester for the control's container. /// (In the page's ASP.NET source code, look for the tag that the /// control is nested in. That's probably the control's /// container.)
return NUnit.Extensions.Asp.HtmlTester