From 071053cf92dac7eec048afaa978de66eca97e753 Mon Sep 17 00:00:00 2001 From: wildcard78 Date: Tue, 2 Apr 2019 09:01:40 -0400 Subject: [PATCH] Update Get-ZertoAlert.Tests.ps1 Added alertId check --- Tests/Public/Get-ZertoAlert.Tests.ps1 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Tests/Public/Get-ZertoAlert.Tests.ps1 b/Tests/Public/Get-ZertoAlert.Tests.ps1 index 50d2f9d..1367839 100644 --- a/Tests/Public/Get-ZertoAlert.Tests.ps1 +++ b/Tests/Public/Get-ZertoAlert.Tests.ps1 @@ -16,4 +16,14 @@ Describe $file.BaseName -Tag 'Unit' { $null = [System.Management.Automation.PSParser]::Tokenize($contents, [ref]$errors) $errors | Should -HaveCount 0 } -} \ No newline at end of file + + Context "$($file.BaseName)::Parameter Unit Tests" { + + it "Has a mandatory string parameter for the Alert identifier" { + Get-Command $file.BaseName | Should -HaveParameter alertId -Mandatory -Type String[] + } + + } + +} +