Skip to content

Commit

Permalink
atbash-cipher: add generator
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Feb 3, 2025
1 parent c7c378e commit 108d545
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions exercises/practice/atbash-cipher/.meta/Generator.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using Xunit;

public class AtbashCipherTests
{
{{for test in tests}}
[Fact{{if !for.first}}(Skip = "Remove this Skip property to run this test"){{end}}]
public void {{test.shortMethodName}}()
{
Assert.Equal({{test.expected | string.literal}}, AtbashCipher.{{test.property | string.capitalize}}({{test.input.phrase | string.literal}}));
}
{{end}}
}

0 comments on commit 108d545

Please sign in to comment.