From 6df14f7a8d9b551e64639fa860a2f24549765f41 Mon Sep 17 00:00:00 2001 From: Wes Carroll Date: Sun, 21 Jul 2019 11:49:08 -0400 Subject: [PATCH] Parameter Count Test --- Tests/Public/Import-ZertoVmNicSetting.Tests.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tests/Public/Import-ZertoVmNicSetting.Tests.ps1 b/Tests/Public/Import-ZertoVmNicSetting.Tests.ps1 index a499b6a..ce84a86 100644 --- a/Tests/Public/Import-ZertoVmNicSetting.Tests.ps1 +++ b/Tests/Public/Import-ZertoVmNicSetting.Tests.ps1 @@ -5,6 +5,10 @@ $global:function = ((Split-Path -leaf $MyInvocation.MyCommand.Path).Split('.'))[ Describe $global:function -Tag 'Unit', 'Source', 'Built' { Context "$global:function::Parameter Unit Tests" { + it "$global:function should have exactly 11 parameters defined" { + (get-command $global:function).Parameters.Count | Should -Be 14 + } + It "Has a mandatory string array parameter for the settings file to import" { Get-Command $global:function | Should -HaveParameter InputFile Get-Command $global:function | Should -HaveParameter InputFile -Mandatory