
420
|
Chapter 13, Enhancing Visual Studio
#93 Run Unit Tests Inside Visual Studio
HACK
fixing any problems. If this does not work, you can take a couple of other
steps to try and get the add-in working again.
Visual Studio includes a command-line switch called
/setup that will do a
reset on Visual Studio, restoring it to its initial state. Using this switch will
erase some of your customizations, but sometimes it is the only way to get
an add-in, or even Visual Studio itself, working properly again.
There is also a
/safemode command-line switch that will start Visual Studio
in safe mode. Visual Studio safe mode loads only the default environment
and services, which disables any VSIP add-ins (not all add-ins) that might be
causing a problem.
HACK
#93
Run Unit Tests Inside Visual Studio Hack #93
Testing can be just a few clicks away when you use TestDriven.NET to run
unit tests right inside of Visual Studio.
Test Driven Development is the practice of writing unit tests for your code
before you actually write that code. By writing a test and then writing the
code to make that test pass, you have a much better idea of the goal and
purpose of your code. Test Driven Development also encourages complete
code coverage, which not only increases the quality of your code, but also
allows you to refactor the internals of a method or class and quickly and eas-
ily test the outside interface of the object.
TestDriven.NET ...