Change default MsTest Unit Test Wizard Template

My team uses the unit test wizard, but found that there are a number of irritants that irritate cracking. Is there any way to change this template?

thanks

+5
source share
1 answer

Yes, you can at several levels:

Project template

You can get rid of About Test Projects and other files using the Options menu in Visual Studio.

Go to Testing Tools → Verify Project and deselect options that you do not want.

If this is not enough, you can find the project template in a folder like this:

C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\ProjectTemplates\CSharp\Test\1033

, 32- Windows , .

Unit Test

vanilla Visual Studio unit test , ( ):

C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\CSharp\1033

SimpleUnitTest.zip, :

  • SimpleUnitTest.cs
  • SimpleUnitTest.vstemplate

SimpleUnitTest.cs, , , , , .

, , VS ,

C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplatesCache\CSharp\1033

, ( ).

, VS ItemTemplateCache, ItemTemplates. , , , - , .

+7

All Articles