Skip to content

Commit 6ecca5c

Browse files
rail-fence-cipher: add generator
1 parent a72e322 commit 6ecca5c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using Xunit;
2+
3+
public class {{testClass}}
4+
{
5+
{{for test in tests}}
6+
[Fact{{if !for.first}}(Skip = "Remove this Skip property to run this test"){{end}}]
7+
public void {{test.shortTestMethod}}()
8+
{
9+
var msg = {{test.input.msg | string.literal}};
10+
var sut = new RailFenceCipher({{test.input.rails}});
11+
var expected = {{test.expected | string.literal}};
12+
Assert.Equal(expected, sut.{{test.testedMethod}}(msg));
13+
}
14+
{{end}}
15+
}

0 commit comments

Comments
 (0)