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.