How do you perform unit testing?
A typical unit test contains 3 phases: First, it initializes a small piece of an application it wants to test (also known as the system under test, or SUT), then it applies some stimulus to the system under test (usually by calling a method on it), and finally, it observes the resulting behavior.
How to do unit testing for UI?
Selenium WebDriver UI tests can be implemented using any unit testing framework. In our daily unit testing we use NUnit for that purpose. To run tests locally, we use a Visual Studio ReSharper plugin. For continuous integration and automated tests runs – we use CruiseControl.Net continuous integration server.