Launching UserControlTestContainer.exe programmatically

I have implemented a C # custom control and have successfully tested it using UserControlTestContainer.exe by manually linking to it. Now, I would like to programmatically, rather than manually, pass data to the control through my unit tests, and then automatically render the control populated with that data. I guess I need to instantiate a control, populate it, and then programmatically start the container using the control as a parameter, right? How do I get my populated control to appear? Of course, the solution does not have to include the aforementioned container, any other suggestion to get the work done would be much appreciated.

0


source to share


1 answer


I just created another Unit Test project doing all the work of the UserControlTestContainer. UserControlTestContainer is triggered via an external application setting for project properties.



+1


source







All Articles