RepeaterTester Constructor (String, Boolean, Boolean, Boolean)
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 Default
HttpClient.
public RepeaterTester(
string aspId,
bool hasHeaderTemplate,
bool hasSeparatorTemplate,
bool hasFooterTemplateContainingServerControl);
Parameters
- aspId
- The ID of the control to test (look in the
page's ASP.NET source code for the ID).
- hasHeaderTemplate
- "True" if the repeater being tested has
a HeaderTemplate.
- hasSeparatorTemplate
- "True" if the repeater being tested
has a SeparatorTemplate.
- hasFooterTemplateContainingServerControl
- Read carefully! Set this parameter to
"True" only if the repeater has a FooterTemplate and
the FooterTemplate contains a server control--that is, a tag with the 'runat="server"'
attribute. If you do not, your tests may fail.
See Also
RepeaterTester Class | NUnit.Extensions.Asp.AspTester Namespace | RepeaterTester Constructor Overload List