diff --git a/Tests/Public/Invoke-ZertoEvacuateVra.Tests.ps1 b/Tests/Public/Invoke-ZertoEvacuateVra.Tests.ps1 index c518f90..47629c7 100644 --- a/Tests/Public/Invoke-ZertoEvacuateVra.Tests.ps1 +++ b/Tests/Public/Invoke-ZertoEvacuateVra.Tests.ps1 @@ -5,8 +5,8 @@ $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 16 parameters defined" { - (get-command $global:function).Parameters.Count | Should -Be 16 + It "$global:function should have exactly 16 parameters defined" { + (Get-Command $global:function).Parameters.Count | Should -Be 16 } $ParameterTestCases = @( @@ -41,6 +41,7 @@ Describe $global:function -Tag 'Unit', 'Source', 'Built' { foreach ($Set in $ParameterSet) { $commandParameterSets.ContainsKey($Set) | Should -BeTrue } + $commandParameterSets.Count | Should -Be $ParameterSet.Count } }