Files
exercism/powershell/two-fer/TwoFer.tests.ps1

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
}
}