views:

9

answers:

2

When I create a new Unit test in Visual Studio, I always have a few things I do to the standard template.

It would be nice when I create the file to have those things done already.

Is there a way to modify the template so that when I select Add->New Nest->Unit Test, it will create a file with my modifications already done?

A: 

Yes, but it's a hack. You have to edit the class template files that Visual Studio uses when it creates the file, which reside deep within the Program Files folder. This article will tell you how.

Randolpho
A: 

Here's an article illustrating how this could be achieved (it is for VS2005 but the same applies for VS2008).

Darin Dimitrov