Create a tester for a nested control. Use this constructor when the control you are testing is nested within another control, such as a DataGrid or UserControl. You should also use this constructor when you're not using the Default HttpClient.
This example demonstrates how to test a label that's inside of a user control:
UserControlTester user1 = new UserControlTester("user1");
LabelTester label = new LabelTester("label", user1);This example demonstrates how to use an HttpClient
other than Default:
HttpClient myHttpClient = new HttpClient();
WebForm currentWebForm = new WebForm(myHttpClient);
LabelTester myTester = new LabelTester("id", currentWebForm);LabelTester Class | NUnit.Extensions.Asp.AspTester Namespace | LabelTester Constructor Overload List