Prevent ReSharper Code Cleanup from moving comment after TestCase

Code Cleanup will change 

        [TestCase(false, true)] // some comment 
        [TestCase(true, false)] // some comment
        [TestCase(true, true)]  // some comment
        public void SomeUnitTest(bool arg1, bool arg2)
        {
 
        }


to this:
        [TestCase(false, true)] // some comment 
        [TestCase(true, false)] // some comment
        [TestCase(true, true)]
        // some comment
        public void SomeUnitTest(bool arg1, bool arg2)
        {
        }
How can I prevent that?

1 comment

Hello Helen!

 

Do I understand correctly that the wrapping is applied only for the third line?

What command do you use for Code Cleanup?

Could you please provide your dotsettings files (https://www.jetbrains.com/help/resharper/Sharing_Configuration_Options.html#managing) and extended code sample so we could reproduce the problem on our side. You can do it privately via 'Submit a request' form.

Thank you.

 

0

Please sign in to leave a comment.