We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ecca5c commit f29b16eCopy full SHA for f29b16e
exercises/practice/nth-prime/.meta/Generator.tpl
@@ -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
17
+}
0 commit comments