I am increasingly annoyed by the unnecessarily verbose template that is used when I create a new unit test in Visual Studio (using the default, included unit testing framework). Instead of
public ImportModelStateTest()
{
//
// TODO: Add constructor logic here
//
}
private TestContext testContextInstance;
/// <summary>
///Gets or sets the test context which provides
///information about and functionality for the current test run.
///</summary>
public TestContext TestContext
{
get
{
return testContextInstance;
}
set
{
testContextInstance = value;
}
}
I'd like to have simply
/// <summary>
///Gets or sets the test context which provides
///information about and functionality for the current test run.
///</summary>
public TestContext TestContext { get; set; }
If I need a constructor I'll add one, and the same goes for special getters and setters. I'd also like to remove the sample TestMethod that is included - I still need to rename it, so I can just as well write my own from scratch.
I have looked for the template used for creating these test files, but not been able to find it (I looked mostly around in the neighborhood of the T4 templates used for controllers and views). Where do I change this template?