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

Base class for testing all ASP.NET server controls that have the "naming container" property set to "true." Use this class when you're creating a custom tester for a server control that is a naming container.
Inheritance: AspControlTester
Mostra file Open project: vcsjones/NUnitAsp

Public Methods

Method Description
NamingContainerTester ( string aspId ) : System

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.

NamingContainerTester ( string aspId, Tester container ) : System

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.

Protected Methods

Method Description
GetChildElementHtmlId ( string aspId ) : string

Returns the HTML ID of a child control. Useful when implementing testers for container controls that do HTML ID mangling. This method is very likely to change in a future release.

Method Details

GetChildElementHtmlId() protected method

Returns the HTML ID of a child control. Useful when implementing testers for container controls that do HTML ID mangling. This method is very likely to change in a future release.
protected GetChildElementHtmlId ( string aspId ) : string
aspId string
return string

NamingContainerTester() 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 NamingContainerTester ( string aspId ) : System
aspId string The ID of the control to test (look in the /// page's ASP.NET source code for the ID).
return System

NamingContainerTester() 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 NamingContainerTester ( string aspId, Tester container ) : System
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 System