Where to configure attribute parameter chop/align?

I have a long [TestCase(a, b, c, d...)] attribute in my unit test and when I reformat code, it is being chopped to one parameter per line.

 

Which setting will preserve formatting or allow a simple wrap?

0
4 comments

Hello Darrek,

Thank you for your question.

What value do you have for "Wrap invocation arguments" in "ReSharper | Options | ReSharper | Options | Code Editing | C# | Formatting Style | Line Breaks and Wrapping | Arrangement of Invocations"?

Thank you!

0
Avatar
Permanently deleted user

0
Avatar
Permanently deleted user

It is the declaration of the test method, not the invocation, that I'm talking about.

0

Hello Darrek,

Please try changing the value to "Simple wrap" for "Wrap invocation arguments" option, please take a look at https://youtrack.jetbrains.com/issue/RSRP-414779#focus=streamItem-27-1983523.0-0

Thank you!

0

Please sign in to leave a comment.