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.

Show file Open project: vcsjones/NUnitAsp Class Usage Examples

Public Methods

Method Description
ToString ( ) : string

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

Protected Methods

Method 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 method

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
return void

GetChildElementHtmlId() protected abstract 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 abstract GetChildElementHtmlId ( string aspId ) : string
aspId string
return string

ToString() public method

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