Possible improvement for creating the test class if it does not yet exist.

Aug 27, 2013 at 8:27 AM
We have a (custom) class template for new test files that we use. It has some references and a header already set.

It would be a great improvement for us if we would be able to set the class template that should be used when TestCop creates a new test file.

I've looked at the code and it seems like a small change, however I have no experience with the FileTemplateManager, so I dont know if custom classes can also be found this way.

Code I looked at was :


Template classTemplate = FileTemplatesManager.Instance.GetFileTemplatesForActions(context).Where(c => c.Description == "Class").FirstOrDefault();
        if (classTemplate == null)
            AppendLineToOutputWindow("Template for 'Class' not found");

Would be awesome if we could have a textbox in the options page to set the class name.

Do you think this is viable?


Sep 1, 2013 at 8:50 PM
I have this on my list already (as I would like it too) and will update you when it is done..
Sep 3, 2013 at 5:53 AM
Edited Sep 3, 2013 at 5:54 AM
Nice, look forward to having this feature, in combination with the fix for the keyboard shortcut being overwritten (I need my ctrl+g for goto line) ;)

Oh fyi, I am using version 7.1 as we are stuck with VS2010 for a while at work.
Sep 25, 2013 at 4:39 PM
Edited Sep 25, 2013 at 4:41 PM
Work in progress for R8 update
Oct 7, 2013 at 8:13 AM
Feature added for Resharper8
Marked as answer by SomethingUseful on 12/16/2013 at 12:44 PM
Oct 28, 2013 at 7:14 PM
Feature added for Resharper7 plugin
Marked as answer by SomethingUseful on 12/16/2013 at 12:44 PM