File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
exercises/practice/two-fer Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 33public 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 }
You can’t perform that action at this time.
0 commit comments