<p>Alright.</p>

<p>So I figure it's about time I get into unit testing, since everyone's been banging on about it for long enough.  I've installed NUnit and gone through a few "intro to unit testing" type tutorials.</p>

<p>I'm currently putting together a small framework to help with the rebuild of one of our web apps, so I've created a VS2008 project for my framework and I want to unit test it as I go.</p>

<p>How on earth do I go about unit testing the WebControls?  The methods are all protected or private, and since it's a framework, there isn't much else but WebControls.</p>

<p>Any pointers?</p>

<p>Burns</p>

Ues the
```
assembly:InternalsVisibleTo
```
attribute and you'll be able to access those private members.
Put it in your webcontrol project's
AssemblyInfo.cs
(under
Properties
node)
```
```
[assembly:InternalsVisibleTo("YourTestProjectName")]
```
```