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

Base class for all NUnitAsp testers. To create your own tester classes, you should usually extend AspTester.AspControlTester or HtmlTester.HtmlControlTester instead.

Not intended for third-party use. The API for this class will change in future releases. Currently, this class assumes that every tester corresponds to exactly one tag in the web page. That may change in the future.

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ToString ( ) : string

Provides a friendly message reminding users not to put testers in assertions.

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

Метод Описание
AssertVisible ( ) : void

Experimental. May change or go away in future revisions. Allows testers to assert that their control should be visible before some operations. Using this method provides clearer error messages to users of the tester.

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.

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

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

Experimental. May change or go away in future revisions. Allows testers to assert that their control should be visible before some operations. Using this method provides clearer error messages to users of the tester.
protected AssertVisible ( ) : void
Результат 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 abstract GetChildElementHtmlId ( string aspId ) : string
aspId string
Результат string

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

Provides a friendly message reminding users not to put testers in assertions.
public ToString ( ) : string
Результат string