Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to span long method names across multiple lines?

Tags:

syntax

c#

We're using very descriptive test names for work and it's getting very annoying to horizontally scroll across them. Is there a way to get a method name to span multiple lines in C#?

Something like:

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

Thanks.

like image 604
LandonSchropp Avatar asked Jul 07 '10 16:07

LandonSchropp


1 Answers

I'm pretty sure the short answer is: No.

There is a Description Attribute for TestMethod that "might" be a helpful alternative...

[TestMethod, Description("My really long descriptive test name")]
public void Test99()
{
   Assert.Fail();
}
like image 149
Scrappydog Avatar answered Oct 05 '22 13:10

Scrappydog