Skip to content

Commit 9c82be0

Browse files
Try refactor
1 parent eddf632 commit 9c82be0

File tree

16 files changed

+65
-41
lines changed

16 files changed

+65
-41
lines changed

exercises/practice/acronym/.meta/Generator.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ public class AcronymTests
44
{
55
{{#test_cases}}
66
[Fact{{#unless @first}}(Skip = "Remove this Skip property to run this test"){{/unless}}]
7-
public void {{method_name path}}()
7+
public void {{test_method_name}}()
88
{
99
Assert.Equal({{literal expected}}, Acronym.Abbreviate({{literal input.phrase}}));
1010
}

exercises/practice/eliuds-eggs/.meta/Generator.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ public class EliudsEggsTests
44
{
55
{{#test_cases}}
66
[Fact{{#unless @first}}(Skip = "Remove this Skip property to run this test"){{/unless}}]
7-
public void {{method_name path}}()
7+
public void {{test_method_name}}()
88
{
99
Assert.Equal({{expected}}, EliudsEggs.EggCount({{input.number}}));
1010
}

exercises/practice/hamming/.meta/Generator.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ public class HammingTests
44
{
55
{{#test_cases}}
66
[Fact{{#unless @first}}(Skip = "Remove this Skip property to run this test"){{/unless}}]
7-
public void {{method_name path}}()
7+
public void {{test_method_name}}()
88
{
99
{{#if error}}
1010
Assert.Throws<ArgumentException>(() => Hamming.Distance({{literal input.strand1}}, {{literal input.strand2}}));

exercises/practice/isogram/.meta/Generator.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ public class IsogramTests
44
{
55
{{#test_cases}}
66
[Fact{{#unless @first}}(Skip = "Remove this Skip property to run this test"){{/unless}}]
7-
public void {{method_name path}}()
7+
public void {{test_method_name}}()
88
{
99
Assert.{{expected}}(Isogram.IsIsogram({{literal input.phrase}}));
1010
}

exercises/practice/leap/.meta/Generator.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ public class LeapTests
44
{
55
{{#test_cases}}
66
[Fact{{#unless @first}}(Skip = "Remove this Skip property to run this test"){{/unless}}]
7-
public void {{method_name path}}()
7+
public void {{test_method_name}}()
88
{
99
Assert.{{expected}}(Leap.IsLeapYear({{input.year}}));
1010
}

exercises/practice/pangram/.meta/Generator.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ public class PangramTests
44
{
55
{{#test_cases}}
66
[Fact{{#unless @first}}(Skip = "Remove this Skip property to run this test"){{/unless}}]
7-
public void {{method_name path}}()
7+
public void {{test_method_name}}()
88
{
99
Assert.{{literal expected}}(Pangram.IsPangram({{literal input.sentence}}));
1010
}

exercises/practice/perfect-numbers/.meta/Generator.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ public class PerfectNumbersTests
44
{
55
{{#test_cases}}
66
[Fact{{#unless @first}}(Skip = "Remove this Skip property to run this test"){{/unless}}]
7-
public void {{method_name path}}()
7+
public void {{test_method_name}}()
88
{
99
{{#if error}}
1010
Assert.Throws<ArgumentOutOfRangeException>(() => PerfectNumbers.Classify({{input.number}}));

exercises/practice/sieve/.meta/Generator.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ public class SieveTests
44
{
55
{{#test_cases}}
66
[Fact{{#unless @first}}(Skip = "Remove this Skip property to run this test"){{/unless}}]
7-
public void {{method_name path}}()
7+
public void {{test_method_name}}()
88
{
99
Assert.Equal([{{expected}}], Sieve.Primes({{input.limit}}));
1010
}

exercises/practice/space-age/.meta/Generator.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ public class SpaceAgeTests
44
{
55
{{#test_cases}}
66
[Fact{{#unless @first}}(Skip = "Remove this Skip property to run this test"){{/unless}}]
7-
public void {{method_name path}}()
7+
public void {{test_method_name}}()
88
{
99
var sut = new SpaceAge({{input.seconds}});
1010
Assert.Equal({{literal expected}}, sut.On{{input.planet}}(), precision: 2);

exercises/practice/square-root/.meta/Generator.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ public class SquareRootTests
44
{
55
{{#test_cases}}
66
[Fact{{#unless @first}}(Skip = "Remove this Skip property to run this test"){{/unless}}]
7-
public void {{method_name path}}()
7+
public void {{test_method_name}}()
88
{
99
Assert.Equal({{expected}}, SquareRoot.Root({{input.radicand}}));
1010
}

0 commit comments

Comments
 (0)