Is there a way to do unit tests using private variables without increasing their visibility?
<p>I have a MyClass I want to test.</p>

<p>I have a TestMyClass class I'm going to use for this.</p>

<p>In MyClass I have several private variables. </p>

<p>I want to run tests using these private variables in TestMyClass.</p>

<p>I can just go and change all these private variables to public and then use them as objects in TestMyClass, but is there a way to do the testing without increasing the visibility of these variables? That is without manually going in to TestMyClass, deleting the private visibility marker and entering a "public" visibility market.</p>

<p>Thanks!</p>
