Skip to content

Commit f29b16e

Browse files
nth-prime: add generator
1 parent 6ecca5c commit f29b16e

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System;
2+
using Xunit;
3+
4+
public class {{testClass}}
5+
{
6+
{{for test in tests}}
7+
[Fact{{if !for.first}}(Skip = "Remove this Skip property to run this test"){{end}}]
8+
public void {{test.testMethod}}()
9+
{
10+
{{if test.expected.error}}
11+
Assert.Throws<ArgumentOutOfRangeException>(() => {{testedClass}}.{{test.testedMethod}}({{test.input.number}}));
12+
{{else}}
13+
Assert.Equal({{test.expected}}, {{testedClass}}.{{test.testedMethod}}({{test.input.number}}));
14+
{{end}}
15+
}
16+
{{end}}
17+
}

0 commit comments

Comments
 (0)