From 8b0def7c50f8020f395e64cd815bf1741a9f17d2 Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Tue, 23 Jul 2019 12:59:23 -0400 Subject: [PATCH] Update Parameter Tests --- Tests/Public/Get-ZertoLocalSite.Tests.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Tests/Public/Get-ZertoLocalSite.Tests.ps1 b/Tests/Public/Get-ZertoLocalSite.Tests.ps1 index 4fea226..fe3af42 100644 --- a/Tests/Public/Get-ZertoLocalSite.Tests.ps1 +++ b/Tests/Public/Get-ZertoLocalSite.Tests.ps1 @@ -5,7 +5,11 @@ $global:function = ((Split-Path -leaf $MyInvocation.MyCommand.Path).Split('.'))[ Describe $global:function -Tag 'Unit', 'Source', 'Built' { Context "$global:function::Parameter Unit Tests" { - it "Has a non-mandatory switch parameter for the pairing Statuses" { + It "$global:function should have exactly 12 parameters defined" { + (Get-Command $global:function).Parameters.Count | Should -Be 12 + } + + It "Has a non-mandatory switch parameter for the pairing Statuses" { Get-Command $global:function | Should -HaveParameter pairingstatuses Get-Command $global:function | Should -HaveParameter pairingstatuses -Type switch }