mirror of
https://github.com/Xevion/exercism.git
synced 2025-12-08 10:07:04 -06:00
PowerShell - leap, raindrops, reverse-string, two-fer
This commit is contained in:
18
powershell/two-fer/TwoFer.tests.ps1
Normal file
18
powershell/two-fer/TwoFer.tests.ps1
Normal file
@@ -0,0 +1,18 @@
|
||||
BeforeAll {
|
||||
. ".\TwoFer.ps1"
|
||||
}
|
||||
|
||||
Describe "Get-TwoFer Tests" {
|
||||
|
||||
It "Given <Name> expects <Expected>" -TestCases @(
|
||||
@{ Name = $null; Expected = "One for you, one for me" },
|
||||
@{ Name = ""; Expected = "One for you, one for me" },
|
||||
@{ Name = "Alice"; Expected = "One for Alice, one for me" }
|
||||
) {
|
||||
Param(
|
||||
$Name, $Expected
|
||||
)
|
||||
|
||||
Get-TwoFer -Name $Name | Should -Be $Expected
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user