File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
exercises/practice/nucleotide-count/.meta Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ using System;
2+ using System.Collections.Generic;
3+ using Xunit;
4+
5+ public class { { testClass } }
6+ {
7+ {{- for test in tests } }
8+ [Fact{ { if ! for.first } }(Skip = "Remove this Skip property to run this test"){ { end } }]
9+ public void { { test.testMethod } }()
10+ {
11+ {{- if test.expected.error } }
12+ Assert.Throws<ArgumentException >(() => { { testedClass } }.Count({ { test.input.strand | string.literal } }));
13+ { { else } }
14+ var expected = new Dictionary<char , int >
15+ {
16+ {{- for key in test.expected | object.keys } }
17+ ['{ { key } }'] = { { test.expected[key] } }{ {- if ! for.last } },{ { end -} }
18+ { { end -} }
19+ };
20+ Assert.Equal(expected, { { testedClass } }.Count({ { test.input.strand | string.literal } }));
21+ { { end -} }
22+ }
23+ { { end -} }
24+ }
You can’t perform that action at this time.
0 commit comments