Modifying class name in file templates (maybe by regex)

Hi

In the company I work we have a convention of postfixing all test classes with the string 'test'. So if I'm creating a unit test for the class FooBar the test class should be called FooBarTest.

I think it must be possible to create a Resharper File Femplate that can help me setup a test class. I have this simple file template for a test class.

When I use that to create the test class FooBarTest I get this

and of course the problem is the 'Test' in the red boxes.

Any good ideas on how to do this?

Yours
/peter

 

0
2 comments
Official comment

Hello!

 

Sorry for delay in responding.

Currently there's no such option in ReSharper, here's similar feature request reported - https://youtrack.jetbrains.com/issue/RSRP-465457

You are welcome to comment or vote for it.

Thank you.

Avatar
Permanently deleted user

Thanks Angelina. I'll go vote for that :)

Yours
/peter

 

0

Please sign in to leave a comment.