Skip to content

Commit 1e206df

Browse files
Fix test naming
1 parent 8ddd860 commit 1e206df

File tree

17 files changed

+144
-144
lines changed

17 files changed

+144
-144
lines changed

exercises/practice/acronym/AcronymTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public void Basic()
99
}
1010

1111
[Fact(Skip = "Remove this Skip property to run this test")]
12-
public void LowercaseWords()
12+
public void Lowercase_words()
1313
{
1414
Assert.Equal("ROR", Acronym.Abbreviate("Ruby on Rails"));
1515
}
@@ -21,25 +21,25 @@ public void Punctuation()
2121
}
2222

2323
[Fact(Skip = "Remove this Skip property to run this test")]
24-
public void AllCapsWord()
24+
public void All_caps_word()
2525
{
2626
Assert.Equal("GIMP", Acronym.Abbreviate("GNU Image Manipulation Program"));
2727
}
2828

2929
[Fact(Skip = "Remove this Skip property to run this test")]
30-
public void PunctuationWithoutWhitespace()
30+
public void Punctuation_without_whitespace()
3131
{
3232
Assert.Equal("CMOS", Acronym.Abbreviate("Complementary metal-oxide semiconductor"));
3333
}
3434

3535
[Fact(Skip = "Remove this Skip property to run this test")]
36-
public void VeryLongAbbreviation()
36+
public void Very_long_abbreviation()
3737
{
3838
Assert.Equal("ROTFLSHTMDCOALM", Acronym.Abbreviate("Rolling On The Floor Laughing So Hard That My Dogs Came Over And Licked Me"));
3939
}
4040

4141
[Fact(Skip = "Remove this Skip property to run this test")]
42-
public void ConsecutiveDelimiters()
42+
public void Consecutive_delimiters()
4343
{
4444
Assert.Equal("SIMUFTA", Acronym.Abbreviate("Something - I made up from thin air"));
4545
}
@@ -51,7 +51,7 @@ public void Apostrophes()
5151
}
5252

5353
[Fact(Skip = "Remove this Skip property to run this test")]
54-
public void UnderscoreEmphasis()
54+
public void Underscore_emphasis()
5555
{
5656
Assert.Equal("TRNT", Acronym.Abbreviate("The Road _Not_ Taken"));
5757
}

exercises/practice/difference-of-squares/DifferenceOfSquaresTests.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,55 +3,55 @@
33
public class DifferenceOfSquaresTests
44
{
55
[Fact]
6-
public void SquareOfSum1()
6+
public void Square_of_sum1()
77
{
88
Assert.Equal(1, DifferenceOfSquares.CalculateSquareOfSum(1));
99
}
1010

1111
[Fact(Skip = "Remove this Skip property to run this test")]
12-
public void SquareOfSum5()
12+
public void Square_of_sum5()
1313
{
1414
Assert.Equal(225, DifferenceOfSquares.CalculateSquareOfSum(5));
1515
}
1616

1717
[Fact(Skip = "Remove this Skip property to run this test")]
18-
public void SquareOfSum100()
18+
public void Square_of_sum100()
1919
{
2020
Assert.Equal(25502500, DifferenceOfSquares.CalculateSquareOfSum(100));
2121
}
2222

2323
[Fact]
24-
public void SumOfSquares1()
24+
public void Sum_of_squares1()
2525
{
2626
Assert.Equal(1, DifferenceOfSquares.CalculateSumOfSquares(1));
2727
}
2828

2929
[Fact(Skip = "Remove this Skip property to run this test")]
30-
public void SumOfSquares5()
30+
public void Sum_of_squares5()
3131
{
3232
Assert.Equal(55, DifferenceOfSquares.CalculateSumOfSquares(5));
3333
}
3434

3535
[Fact(Skip = "Remove this Skip property to run this test")]
36-
public void SumOfSquares100()
36+
public void Sum_of_squares100()
3737
{
3838
Assert.Equal(338350, DifferenceOfSquares.CalculateSumOfSquares(100));
3939
}
4040

4141
[Fact]
42-
public void DifferenceOfSquares1()
42+
public void Difference_of_squares1()
4343
{
4444
Assert.Equal(0, DifferenceOfSquares.CalculateDifferenceOfSquares(1));
4545
}
4646

4747
[Fact(Skip = "Remove this Skip property to run this test")]
48-
public void DifferenceOfSquares5()
48+
public void Difference_of_squares5()
4949
{
5050
Assert.Equal(170, DifferenceOfSquares.CalculateDifferenceOfSquares(5));
5151
}
5252

5353
[Fact(Skip = "Remove this Skip property to run this test")]
54-
public void DifferenceOfSquares100()
54+
public void Difference_of_squares100()
5555
{
5656
Assert.Equal(25164150, DifferenceOfSquares.CalculateDifferenceOfSquares(100));
5757
}

exercises/practice/eliuds-eggs/EliudsEggsTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@
33
public class EliudsEggsTests
44
{
55
[Fact]
6-
public void ZeroEggs()
6+
public void Zero_eggs()
77
{
88
Assert.Equal(0, EliudsEggs.EggCount(0));
99
}
1010

1111
[Fact(Skip = "Remove this Skip property to run this test")]
12-
public void OneEgg()
12+
public void One_egg()
1313
{
1414
Assert.Equal(1, EliudsEggs.EggCount(16));
1515
}
1616

1717
[Fact(Skip = "Remove this Skip property to run this test")]
18-
public void FourEggs()
18+
public void Four_eggs()
1919
{
2020
Assert.Equal(4, EliudsEggs.EggCount(89));
2121
}
2222

2323
[Fact(Skip = "Remove this Skip property to run this test")]
24-
public void ThirteenEggs()
24+
public void Thirteen_eggs()
2525
{
2626
Assert.Equal(13, EliudsEggs.EggCount(2000000000));
2727
}

exercises/practice/hamming/HammingTests.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,55 +3,55 @@
33
public class HammingTests
44
{
55
[Fact]
6-
public void EmptyStrands()
6+
public void Empty_strands()
77
{
88
Assert.Equal(0, Hamming.Distance("", ""));
99
}
1010

1111
[Fact(Skip = "Remove this Skip property to run this test")]
12-
public void SingleLetterIdenticalStrands()
12+
public void Single_letter_identical_strands()
1313
{
1414
Assert.Equal(0, Hamming.Distance("A", "A"));
1515
}
1616

1717
[Fact(Skip = "Remove this Skip property to run this test")]
18-
public void SingleLetterDifferentStrands()
18+
public void Single_letter_different_strands()
1919
{
2020
Assert.Equal(1, Hamming.Distance("G", "T"));
2121
}
2222

2323
[Fact(Skip = "Remove this Skip property to run this test")]
24-
public void LongIdenticalStrands()
24+
public void Long_identical_strands()
2525
{
2626
Assert.Equal(0, Hamming.Distance("GGACTGAAATCTG", "GGACTGAAATCTG"));
2727
}
2828

2929
[Fact(Skip = "Remove this Skip property to run this test")]
30-
public void LongDifferentStrands()
30+
public void Long_different_strands()
3131
{
3232
Assert.Equal(9, Hamming.Distance("GGACGGATTCTG", "AGGACGGATTCT"));
3333
}
3434

3535
[Fact(Skip = "Remove this Skip property to run this test")]
36-
public void DisallowFirstStrandLonger()
36+
public void Disallow_first_strand_longer()
3737
{
3838
Assert.Throws<ArgumentException>(() => Hamming.Distance("AATG", "AAA"));
3939
}
4040

4141
[Fact(Skip = "Remove this Skip property to run this test")]
42-
public void DisallowSecondStrandLonger()
42+
public void Disallow_second_strand_longer()
4343
{
4444
Assert.Throws<ArgumentException>(() => Hamming.Distance("ATA", "AGTG"));
4545
}
4646

4747
[Fact(Skip = "Remove this Skip property to run this test")]
48-
public void DisallowEmptyFirstStrand()
48+
public void Disallow_empty_first_strand()
4949
{
5050
Assert.Throws<ArgumentException>(() => Hamming.Distance("", "G"));
5151
}
5252

5353
[Fact(Skip = "Remove this Skip property to run this test")]
54-
public void DisallowEmptySecondStrand()
54+
public void Disallow_empty_second_strand()
5555
{
5656
Assert.Throws<ArgumentException>(() => Hamming.Distance("G", ""));
5757
}

exercises/practice/isogram/IsogramTests.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,85 +3,85 @@
33
public class IsogramTests
44
{
55
[Fact]
6-
public void EmptyString()
6+
public void Empty_string()
77
{
88
Assert.True(Isogram.IsIsogram(""));
99
}
1010

1111
[Fact(Skip = "Remove this Skip property to run this test")]
12-
public void IsogramWithOnlyLowerCaseCharacters()
12+
public void Isogram_with_only_lower_case_characters()
1313
{
1414
Assert.True(Isogram.IsIsogram("isogram"));
1515
}
1616

1717
[Fact(Skip = "Remove this Skip property to run this test")]
18-
public void WordWithOneDuplicatedCharacter()
18+
public void Word_with_one_duplicated_character()
1919
{
2020
Assert.False(Isogram.IsIsogram("eleven"));
2121
}
2222

2323
[Fact(Skip = "Remove this Skip property to run this test")]
24-
public void WordWithOneDuplicatedCharacterFromTheEndOfTheAlphabet()
24+
public void Word_with_one_duplicated_character_from_the_end_of_the_alphabet()
2525
{
2626
Assert.False(Isogram.IsIsogram("zzyzx"));
2727
}
2828

2929
[Fact(Skip = "Remove this Skip property to run this test")]
30-
public void LongestReportedEnglishIsogram()
30+
public void Longest_reported_english_isogram()
3131
{
3232
Assert.True(Isogram.IsIsogram("subdermatoglyphic"));
3333
}
3434

3535
[Fact(Skip = "Remove this Skip property to run this test")]
36-
public void WordWithDuplicatedCharacterInMixedCase()
36+
public void Word_with_duplicated_character_in_mixed_case()
3737
{
3838
Assert.False(Isogram.IsIsogram("Alphabet"));
3939
}
4040

4141
[Fact(Skip = "Remove this Skip property to run this test")]
42-
public void WordWithDuplicatedCharacterInMixedCaseLowercaseFirst()
42+
public void Word_with_duplicated_character_in_mixed_case_lowercase_first()
4343
{
4444
Assert.False(Isogram.IsIsogram("alphAbet"));
4545
}
4646

4747
[Fact(Skip = "Remove this Skip property to run this test")]
48-
public void HypotheticalIsogrammicWordWithHyphen()
48+
public void Hypothetical_isogrammic_word_with_hyphen()
4949
{
5050
Assert.True(Isogram.IsIsogram("thumbscrew-japingly"));
5151
}
5252

5353
[Fact(Skip = "Remove this Skip property to run this test")]
54-
public void HypotheticalWordWithDuplicatedCharacterFollowingHyphen()
54+
public void Hypothetical_word_with_duplicated_character_following_hyphen()
5555
{
5656
Assert.False(Isogram.IsIsogram("thumbscrew-jappingly"));
5757
}
5858

5959
[Fact(Skip = "Remove this Skip property to run this test")]
60-
public void IsogramWithDuplicatedHyphen()
60+
public void Isogram_with_duplicated_hyphen()
6161
{
6262
Assert.True(Isogram.IsIsogram("six-year-old"));
6363
}
6464

6565
[Fact(Skip = "Remove this Skip property to run this test")]
66-
public void MadeUpNameThatIsAnIsogram()
66+
public void Made_up_name_that_is_an_isogram()
6767
{
6868
Assert.True(Isogram.IsIsogram("Emily Jung Schwartzkopf"));
6969
}
7070

7171
[Fact(Skip = "Remove this Skip property to run this test")]
72-
public void DuplicatedCharacterInTheMiddle()
72+
public void Duplicated_character_in_the_middle()
7373
{
7474
Assert.False(Isogram.IsIsogram("accentor"));
7575
}
7676

7777
[Fact(Skip = "Remove this Skip property to run this test")]
78-
public void SameFirstAndLastCharacters()
78+
public void Same_first_and_last_characters()
7979
{
8080
Assert.False(Isogram.IsIsogram("angola"));
8181
}
8282

8383
[Fact(Skip = "Remove this Skip property to run this test")]
84-
public void WordWithDuplicatedCharacterAndWithTwoHyphens()
84+
public void Word_with_duplicated_character_and_with_two_hyphens()
8585
{
8686
Assert.False(Isogram.IsIsogram("up-to-date"));
8787
}

exercises/practice/leap/LeapTests.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,55 +3,55 @@
33
public class LeapTests
44
{
55
[Fact]
6-
public void YearNotDivisibleBy4InCommonYear()
6+
public void Year_not_divisible_by4_in_common_year()
77
{
88
Assert.False(Leap.IsLeapYear(2015));
99
}
1010

1111
[Fact(Skip = "Remove this Skip property to run this test")]
12-
public void YearDivisibleBy2NotDivisibleBy4InCommonYear()
12+
public void Year_divisible_by2_not_divisible_by4_in_common_year()
1313
{
1414
Assert.False(Leap.IsLeapYear(1970));
1515
}
1616

1717
[Fact(Skip = "Remove this Skip property to run this test")]
18-
public void YearDivisibleBy4NotDivisibleBy100InLeapYear()
18+
public void Year_divisible_by4_not_divisible_by100_in_leap_year()
1919
{
2020
Assert.True(Leap.IsLeapYear(1996));
2121
}
2222

2323
[Fact(Skip = "Remove this Skip property to run this test")]
24-
public void YearDivisibleBy4And5IsStillALeapYear()
24+
public void Year_divisible_by4_and5_is_still_a_leap_year()
2525
{
2626
Assert.True(Leap.IsLeapYear(1960));
2727
}
2828

2929
[Fact(Skip = "Remove this Skip property to run this test")]
30-
public void YearDivisibleBy100NotDivisibleBy400InCommonYear()
30+
public void Year_divisible_by100_not_divisible_by400_in_common_year()
3131
{
3232
Assert.False(Leap.IsLeapYear(2100));
3333
}
3434

3535
[Fact(Skip = "Remove this Skip property to run this test")]
36-
public void YearDivisibleBy100ButNotBy3IsStillNotALeapYear()
36+
public void Year_divisible_by100_but_not_by3_is_still_not_a_leap_year()
3737
{
3838
Assert.False(Leap.IsLeapYear(1900));
3939
}
4040

4141
[Fact(Skip = "Remove this Skip property to run this test")]
42-
public void YearDivisibleBy400IsLeapYear()
42+
public void Year_divisible_by400_is_leap_year()
4343
{
4444
Assert.True(Leap.IsLeapYear(2000));
4545
}
4646

4747
[Fact(Skip = "Remove this Skip property to run this test")]
48-
public void YearDivisibleBy400ButNotBy125IsStillALeapYear()
48+
public void Year_divisible_by400_but_not_by125_is_still_a_leap_year()
4949
{
5050
Assert.True(Leap.IsLeapYear(2400));
5151
}
5252

5353
[Fact(Skip = "Remove this Skip property to run this test")]
54-
public void YearDivisibleBy200NotDivisibleBy400InCommonYear()
54+
public void Year_divisible_by200_not_divisible_by400_in_common_year()
5555
{
5656
Assert.False(Leap.IsLeapYear(1800));
5757
}

0 commit comments

Comments
 (0)