C# Класс NUnit.Extensions.Asp.ControlTester

Base class for all tag-based controls. Most people should extend AspTester.AspControlTester or HtmlTester.HtmlControlTester. The API for this class will change in future releases.
Наследование: Tester
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ControlTester ( 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.

ControlTester ( 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.

Защищенные методы

Метод Описание
ControlTester ( ) : System

Create a tester that has no ID. This constructor is for NUnitAsp internal use and should be avoided. It will likely change in a future release.

ControlTester ( Tester container ) : System

Create a tester that has no ID. This constructor is for NUnitAsp internal use and should be avoided. It will likely change in a future release.

EnterInputValue ( string name, string value ) : void
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.

RemoveInputValue ( string name ) : void

Приватные методы

Метод Описание
AssertEnabled ( ) : void
IsPostBack ( string candidatePostBackScript ) : bool
OptionalPostBack ( string candidatePostBackScript ) : void
PostBack ( string postBackScript ) : void
PostBack ( string eventTarget, string eventArgument ) : void
Submit ( ) : void

Описание методов

ControlTester() защищенный Метод

Create a tester that has no ID. This constructor is for NUnitAsp internal use and should be avoided. It will likely change in a future release.
protected ControlTester ( ) : System
Результат System

ControlTester() защищенный Метод

Create a tester that has no ID. This constructor is for NUnitAsp internal use and should be avoided. It will likely change in a future release.
protected ControlTester ( Tester container ) : System
container Tester
Результат System

ControlTester() публичный Метод

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 ControlTester ( string aspId ) : System
aspId string The ID of the control to test (look in the /// page's ASP.NET source code for the ID).
Результат System

ControlTester() публичный Метод

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 ControlTester ( 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.)
Результат System

EnterInputValue() защищенный Метод

protected EnterInputValue ( string name, string value ) : void
name string
value string
Результат void

GetChildElementHtmlId() защищенный Метод

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
Результат string

RemoveInputValue() защищенный Метод

protected RemoveInputValue ( string name ) : void
name string
Результат void