We have developed a number of ASP.Net controls, and we need to test them. I want to instantiate a control, set some properties, call CreateChildControls and check the control hierarchy.
I ran into a number of problems:
- Controls rely on HttpContext
- CreateChildControls is private
Even adding one child control to a collection of controls calls the ResolveAdapter () method, which uses the HttpContext.
How can I get around this?
ps I do not want to check the controls on the page (!).
source
share