Is there a way to cover long method names on multiple lines?

We use very descriptive test names to work, and it becomes very annoying to scroll horizontally across them. Is there a way to get the method name to place multiple lines in C #?

Sort of:

MyMethodNameIsReallyLong
    _SoImMakingItSpanMultipleLines
    _SoIDontHaveToHorizontallyScroll
    _AndMyLifeIsMuchEasier()
{
    DoSomething();
}

Thank.

+3
source share
3 answers

I am sure the short answer is: No.

There is a description attribute for TestMethod, which "may be" a useful alternative ...

[TestMethod, Description("My really long descriptive test name")]
public void Test99()
{
   Assert.Fail();
}
+5
source

. , MyMethodNameIsReallyLong. 4-5 , . .

getElementById/Name - javascript

0

I assume the names of the individual methods are not long enough to require scrolling. If you change the method calls, you will see more text vertically:

MyMethodNameIsReallyLong(
   SoImMakingItSpanMultipleLines(
      SoIDontHaveToHorizontallyScroll()
   )
);
0
source

Source: https://habr.com/ru/post/1753554/


All Articles