shekharpro / mb-unit

Automatically exported from code.google.com/p/mb-unit
0 stars 0 forks source link

Standardize the name of unit test methods in the Gallio solution (MbUnit.Tests, Gallio.Tests, etc.) #415

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I noticed two different styles for naming the unit test methods used in 
the Gallio solution: "CamelCasing" and "Sentence_casing_with_underscores". 
Although I personnally used the first in all my personal projects for a 
long time, the last seems to be more and more used. And it seems to fit 
well the usually long names used for test methods, by increasing 
readability in the same time.

For consistency, I propose to adopt one single syntax for the entire 
Gallio solution.

For which syntax do you vote?

[Test]
public void JeffIsTheBest()
{
  Assert.IsTrue(Gallio.Rocks());
}

[Test]
public void Jeff_is_the_best()
{
  Assert.IsTrue(Gallio.Rocks());
}

Original issue reported on code.google.com by Yann.Tre...@gmail.com on 1 Apr 2009 at 1:04

GoogleCodeExporter commented 8 years ago

Original comment by Yann.Tre...@gmail.com on 3 Apr 2009 at 6:32

GoogleCodeExporter commented 8 years ago
I have to admit that I'm guilty of using both. I used to use the first version, 
but
have recently started to prefer (and use) the second. My vote is for the 
sentences,
but I'm happy to revert to camel case if that's the consensus (I'm not 
volunteering
to update any old tests though! :).

Original comment by grahamr...@gmail.com on 7 Apr 2009 at 9:42