Skip to content

Commit 2f21358

Browse files
Add two-fer
1 parent d537221 commit 2f21358

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using Xunit;
2+
3+
public class TwoFerTests
4+
{
5+
{{#test_cases}}
6+
[Fact{{#unless @first}}(Skip = "Remove this Skip property to run this test"){{/unless}}]
7+
public void {{method_name path}}()
8+
{
9+
Assert.Equal({{expected}}, TwoFer.Speak({{#if input.name}}{{input.name}}{{/if}}));
10+
}
11+
{{/test_cases}}
12+
}

exercises/practice/two-fer/TwoFerTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
public class TwoFerTests
44
{
55
[Fact]
6-
public void No_name_given()
6+
public void NoNameGiven()
77
{
88
Assert.Equal("One for you, one for me.", TwoFer.Speak());
99
}
1010

1111
[Fact(Skip = "Remove this Skip property to run this test")]
12-
public void A_name_given()
12+
public void ANameGiven()
1313
{
1414
Assert.Equal("One for Alice, one for me.", TwoFer.Speak("Alice"));
1515
}
1616

1717
[Fact(Skip = "Remove this Skip property to run this test")]
18-
public void Another_name_given()
18+
public void AnotherNameGiven()
1919
{
2020
Assert.Equal("One for Bob, one for me.", TwoFer.Speak("Bob"));
2121
}

0 commit comments

Comments
 (0)