Unify pester test syntax for the arguments of -BeOfType (#11558)

This commit is contained in:
xtqqczze
2020-01-24 11:00:37 -08:00
committed by Dongbo Wang
parent a7a2b12336
commit 920b671fb4
68 changed files with 216 additions and 216 deletions
@@ -49,7 +49,7 @@ Describe "Remote module tests" -Tags 'Feature','RequireAdminOnWindows' {
}
$modules = Get-Module @parameters
$modules | Should -Not -BeNullOrEmpty
$modules[0] | Should -BeOfType "System.Management.Automation.PSModuleInfo"
$modules[0] | Should -BeOfType System.Management.Automation.PSModuleInfo
}
It "Get-Module can be called as an API with '<parameter>' = '<value>'" -TestCases @(
@@ -74,7 +74,7 @@ Describe "Remote module tests" -Tags 'Feature','RequireAdminOnWindows' {
$getModuleCommand = [Microsoft.PowerShell.Commands.GetModuleCommand]::new()
$getModuleCommand.$parameter = $value
if ($parameter -eq "FullyQualifiedName") {
$getModuleCommand.FullyQualifiedName | Should -BeOfType "Microsoft.PowerShell.Commands.ModuleSpecification"
$getModuleCommand.FullyQualifiedName | Should -BeOfType Microsoft.PowerShell.Commands.ModuleSpecification
$getModuleCommand.FullyQualifiedName.Name | Should -BeExactly "foo"
$getModuleCommand.FullyQualifiedName.Version | Should -Be "1.2.3"
} else {