mirror of
https://github.com/Xevion/exercism.git
synced 2025-12-06 05:15:02 -06:00
18 lines
441 B
PowerShell
18 lines
441 B
PowerShell
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
|
|
}
|
|
} |