NUnitAsp

HtmlControlTester Constructor (String, Tester, Boolean)

Create the tester and link it to an ASP.NET control.

public HtmlControlTester(
   string aspId,
   Tester container,
   bool runAtServer
);

Parameters

aspId
The ID of the control to test (look in the page's ASP.NET source code for the ID).
container
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. Use CurrentWebForm if the control is just nested in the form tag.)
runAtServer
Tells tester whether the control under test is running on the server side.

See Also

HtmlControlTester Class | NUnit.Extensions.Asp.HtmlTester Namespace | HtmlControlTester Constructor Overload List