Skip to Content
Visual Studio Hacks
book

Visual Studio Hacks

by James Avery
March 2005
Intermediate to advanced
304 pages
19h 23m
English
O'Reilly Media, Inc.
Content preview from Visual Studio Hacks
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Mastering Visual Studio .NET

Mastering Visual Studio .NET

Chris Sells, Ian Griffiths, Jon Flanders
C# 4.0 Unleashed

C# 4.0 Unleashed

Bart De Smet
Programming in the .NET Environment

Programming in the .NET Environment

Damien Watkins, Mark Hammond, Brad Abrams

Publisher Resources

ISBN: 0596008473Errata Page