PowerShell - leap, raindrops, reverse-string, two-fer

This commit is contained in:
Xevion
2021-11-26 02:28:45 -06:00
parent e02f2ceabf
commit 3bd08f4c92
29 changed files with 569 additions and 0 deletions

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