C# Class 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.

Afficher le fichier Open project: vcsjones/NUnitAsp Class Usage Examples

Méthodes publiques

Méthode Description
ToString ( ) : string

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

Méthodes protégées

Méthode Description
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.

Method Details

AssertVisible() protected méthode

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
Résultat void

GetChildElementHtmlId() protected abstract méthode

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
Résultat string

ToString() public méthode

Provides a friendly message reminding users not to put testers in assertions.
public ToString ( ) : string
Résultat string