Skip to content

Commit 4d90589

Browse files
triangle: add template
1 parent b23a716 commit 4d90589

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
using Xunit;
2+
3+
public class TriangleTests
4+
{
5+
{{#test_cases_by_property.equilateral}}
6+
[Fact{{#unless @first}}(Skip = "Remove this Skip property to run this test"){{/unless}}]
7+
public void {{test_method_name}}()
8+
{
9+
Assert.{{expected}}(Triangle.IsEquilateral({{input.sides.0}}, {{input.sides.1}}, {{input.sides.2}}));
10+
}
11+
{{/test_cases_by_property.equilateral}}
12+
13+
{{#test_cases_by_property.isosceles}}
14+
[Fact(Skip = "Remove this Skip property to run this test")]
15+
public void {{test_method_name}}()
16+
{
17+
Assert.{{expected}}(Triangle.IsIsosceles({{input.sides.0}}, {{input.sides.1}}, {{input.sides.2}}));
18+
}
19+
{{/test_cases_by_property.isosceles}}
20+
21+
{{#test_cases_by_property.scalene}}
22+
[Fact(Skip = "Remove this Skip property to run this test")]
23+
public void {{test_method_name}}()
24+
{
25+
Assert.{{expected}}(Triangle.IsScalene({{input.sides.0}}, {{input.sides.1}}, {{input.sides.2}}));
26+
}
27+
{{/test_cases_by_property.scalene}}
28+
}

0 commit comments

Comments
 (0)