Skip to content

Commit 362b10f

Browse files
armstrong-numbers: add generator
1 parent c8c6764 commit 362b10f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
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 ArmstrongNumbersTests
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.methodName}}()
8+
{
9+
Assert.{{test.expected ? "True" : "False"}}(ArmstrongNumbers.IsArmstrongNumber({{test.input.number}}));
10+
}
11+
{{end}}
12+
}

0 commit comments

Comments
 (0)