-
-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d7ceef1
commit 1593833
Showing
35 changed files
with
114 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
using Xunit; | ||
|
||
public class AcronymTests | ||
public class {{testClass}} | ||
{ | ||
{{for test in tests}} | ||
[Fact{{if !for.first}}(Skip = "Remove this Skip property to run this test"){{end}}] | ||
public void {{test.methodName}}() | ||
public void {{test.testMethod}}() | ||
{ | ||
Assert.Equal({{test.expected | string.literal}}, Acronym.Abbreviate({{test.input.phrase | string.literal}})); | ||
Assert.Equal({{test.expected | string.literal}}, {{testedClass}}.{{test.testedMethod}}({{test.input.phrase | string.literal}})); | ||
} | ||
{{end}} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
using Xunit; | ||
|
||
public class ArmstrongNumbersTests | ||
public class {{testClass}} | ||
{ | ||
{{for test in tests}} | ||
[Fact{{if !for.first}}(Skip = "Remove this Skip property to run this test"){{end}}] | ||
public void {{test.methodName}}() | ||
public void {{test.testMethod}}() | ||
{ | ||
Assert.{{test.expected ? "True" : "False"}}(ArmstrongNumbers.IsArmstrongNumber({{test.input.number}})); | ||
Assert.{{test.expected ? "True" : "False"}}({{testedClass}}.{{test.testedMethod}}({{test.input.number}})); | ||
} | ||
{{end}} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
using Xunit; | ||
|
||
public class AtbashCipherTests | ||
public class {{testClass}} | ||
{ | ||
{{for test in tests}} | ||
[Fact{{if !for.first}}(Skip = "Remove this Skip property to run this test"){{end}}] | ||
public void {{test.shortMethodName}}() | ||
public void {{test.shortTestMethod}}() | ||
{ | ||
Assert.Equal({{test.expected | string.literal}}, AtbashCipher.{{test.property | string.capitalize}}({{test.input.phrase | string.literal}})); | ||
Assert.Equal({{test.expected | string.literal}}, {{testedClass}}.{{test.testedMethod}}({{test.input.phrase | string.literal}})); | ||
} | ||
{{end}} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
using Xunit; | ||
|
||
public class DartsTests | ||
public class {{testClass}} | ||
{ | ||
{{for test in tests}} | ||
[Fact{{if !for.first}}(Skip = "Remove this Skip property to run this test"){{end}}] | ||
public void {{test.methodName}}() | ||
public void {{test.testMethod}}() | ||
{ | ||
Assert.Equal({{test.expected}}, Darts.Score({{test.input.x}}, {{test.input.y}})); | ||
Assert.Equal({{test.expected}}, {{testedClass}}.{{test.testedMethod}}({{test.input.x}}, {{test.input.y}})); | ||
} | ||
{{end}} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
using Xunit; | ||
|
||
public class DifferenceOfSquaresTests | ||
public class {{testClass}} | ||
{ | ||
{{for test in tests}} | ||
[Fact{{if !for.first}}(Skip = "Remove this Skip property to run this test"){{end}}] | ||
public void {{test.shortMethodName}}() | ||
public void {{test.shortTestMethod}}() | ||
{ | ||
Assert.Equal({{test.expected}}, DifferenceOfSquares.Calculate{{test.property | string.capitalize}}({{test.input.number}})); | ||
Assert.Equal({{test.expected}}, {{testedClass}}.Calculate{{test.testedMethod}}({{test.input.number}})); | ||
} | ||
{{end}} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
using Xunit; | ||
|
||
public class EliudsEggsTests | ||
public class {{testClass}} | ||
{ | ||
{{for test in tests}} | ||
[Fact{{if !for.first}}(Skip = "Remove this Skip property to run this test"){{end}}] | ||
public void {{test.methodName}}() | ||
public void {{test.testMethod}}() | ||
{ | ||
Assert.Equal({{test.expected}}, EliudsEggs.EggCount({{test.input.number}})); | ||
Assert.Equal({{test.expected}}, {{testedClass}}.{{test.testedMethod}}({{test.input.number}})); | ||
} | ||
{{end}} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
using Xunit; | ||
|
||
public class IsogramTests | ||
public class {{testClass}} | ||
{ | ||
{{for test in tests}} | ||
[Fact{{if !for.first}}(Skip = "Remove this Skip property to run this test"){{end}}] | ||
public void {{test.methodName}}() | ||
public void {{test.testMethod}}() | ||
{ | ||
Assert.{{test.expected ? "True" : "False"}}(Isogram.IsIsogram({{test.input.phrase | string.literal}})); | ||
Assert.{{test.expected ? "True" : "False"}}({{testedClass}}.{{test.testedMethod}}({{test.input.phrase | string.literal}})); | ||
} | ||
{{end}} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
using Xunit; | ||
|
||
public class LeapTests | ||
public class {{testClass}} | ||
{ | ||
{{for test in tests}} | ||
[Fact{{if !for.first}}(Skip = "Remove this Skip property to run this test"){{end}}] | ||
public void {{test.methodName}}() | ||
public void {{test.testMethod}}() | ||
{ | ||
Assert.{{test.expected ? "True" : "False"}}(Leap.IsLeapYear({{test.input.year}})); | ||
Assert.{{test.expected ? "True" : "False"}}({{testedClass}}.Is{{test.testedMethod}}({{test.input.year}})); | ||
} | ||
{{end}} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
using Xunit; | ||
|
||
public class PangramTests | ||
public class {{testClass}} | ||
{ | ||
{{for test in tests}} | ||
[Fact{{if !for.first}}(Skip = "Remove this Skip property to run this test"){{end}}] | ||
public void {{test.methodName}}() | ||
public void {{test.testMethod}}() | ||
{ | ||
Assert.{{test.expected ? "True" : "False"}}(Pangram.IsPangram({{test.input.sentence | string.literal}})); | ||
Assert.{{test.expected ? "True" : "False"}}({{testedClass}}.{{test.testedMethod}}({{test.input.sentence | string.literal}})); | ||
} | ||
{{end}} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
using Xunit; | ||
|
||
public class RotationalCipherTests | ||
public class {{testClass}} | ||
{ | ||
{{for test in tests}} | ||
[Fact{{if !for.first}}(Skip = "Remove this Skip property to run this test"){{end}}] | ||
public void {{test.methodName}}() | ||
public void {{test.testMethod}}() | ||
{ | ||
Assert.Equal({{test.expected | string.literal}}, RotationalCipher.Rotate({{test.input.text | string.literal}}, {{test.input.shiftKey}})); | ||
Assert.Equal({{test.expected | string.literal}}, {{testedClass}}.{{test.testedMethod}}({{test.input.text | string.literal}}, {{test.input.shiftKey}})); | ||
} | ||
{{end}} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
using Xunit; | ||
|
||
public class SieveTests | ||
public class {{testClass}} | ||
{ | ||
{{for test in tests}} | ||
[Fact{{if !for.first}}(Skip = "Remove this Skip property to run this test"){{end}}] | ||
public void {{test.methodName}}() | ||
public void {{test.testMethod}}() | ||
{ | ||
int[] expected = {{test.expected}}; | ||
Assert.Equal(expected, Sieve.Primes({{test.input.limit}})); | ||
Assert.Equal(expected, {{testedClass}}.{{test.testedMethod}}({{test.input.limit}})); | ||
} | ||
{{end}} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.