Skip to content

Commit 77fcdc4

Browse files
Simplify template
1 parent bf85b84 commit 77fcdc4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

exercises/practice/difference-of-squares/.meta/Generator.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ public class {{exercise.name}}Tests
44
{
55
{{for test_case in test_cases_by_property.squareOfSum}}
66
[Fact{{if !for.first}}(Skip = "Remove this Skip property to run this test"){{end}}]
7-
public void {{test_case.path | array.last | method_name}}()
7+
public void {{test_case.description | method_name}}()
88
{
99
Assert.Equal({{test_case.expected}}, {{exercise.name}}.CalculateSquareOfSum({{test_case.input.number}}));
1010
}
1111
{{end}}
1212

1313
{{for test_case in test_cases_by_property.sumOfSquares}}
1414
[Fact{{if !for.first}}(Skip = "Remove this Skip property to run this test"){{end}}]
15-
public void {{test_case.path | array.last | method_name}}()
15+
public void {{test_case.description | method_name}}()
1616
{
1717
Assert.Equal({{test_case.expected}}, {{exercise.name}}.CalculateSumOfSquares({{test_case.input.number}}));
1818
}
1919
{{end}}
2020

2121
{{for test_case in test_cases_by_property.differenceOfSquares}}
2222
[Fact{{if !for.first}}(Skip = "Remove this Skip property to run this test"){{end}}]
23-
public void {{test_case.path | array.last | method_name}}()
23+
public void {{test_case.description | method_name}}()
2424
{
2525
Assert.Equal({{test_case.expected}}, {{exercise.name}}.CalculateDifferenceOfSquares({{test_case.input.number}}));
2626
}

0 commit comments

Comments
 (0)