Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Suppressing resharper rename in strings

Is there any way to suppress renaming strings after Ctr+R, Ctr+R in file, someting similar to:

// ReSharper disable InconsistentNaming
private readonly IMyClass NONStandardConvension;
// ReSharper restore InconsistentNaming

but with code like:

    [Test]
    public void TestIfNameNotChanged()
    {
        // ReSharper disable ??refactoring??
        var className = typeof (MyClass).Name;
        Assert.AreEqual("MyClass", className);
        // ReSharper restore ??refactoring??
    } 

I would like to test if my scripts won't fail after applying accidental refactoring.

like image 758
0lukasz0 Avatar asked Nov 28 '25 16:11

0lukasz0


1 Answers

Apparently there is no such feature in current Resharper version (7.1.3). But if you like it to come you can vote on Resharper issue tracker.

like image 121
0lukasz0 Avatar answered Dec 01 '25 02:12

0lukasz0



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!