show registered snapins on appveyor build
This commit is contained in:
parent
d8d5757036
commit
1a6a861ad1
@ -89,8 +89,8 @@ Could not find the required {0} called {1}. Please install the required {0} to r
|
|||||||
else {
|
else {
|
||||||
if ($StopIfFails) {
|
if ($StopIfFails) {
|
||||||
Write-Error -Message $Message -ErrorAction Stop -Category NotInstalled
|
Write-Error -Message $Message -ErrorAction Stop -Category NotInstalled
|
||||||
return $false
|
|
||||||
}
|
}
|
||||||
|
return $false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,7 +32,8 @@ Describe "Test-ModuleName" {
|
|||||||
}
|
}
|
||||||
Context "Working with PSSnapins" {
|
Context "Working with PSSnapins" {
|
||||||
It "Loading first PSSnaping should not throw " {
|
It "Loading first PSSnaping should not throw " {
|
||||||
$Snap = Get-PSSnapin -Registered | Select-Object -First 1
|
$Snap = Get-PSSnapin -Registered
|
||||||
|
$Snap
|
||||||
{ $loaded = Test-Module -Name $Snap.Name -Type PSSnapin } | Should -Not -Throw
|
{ $loaded = Test-Module -Name $Snap.Name -Type PSSnapin } | Should -Not -Throw
|
||||||
Remove-PSSnapin -Name $Snap.Name
|
Remove-PSSnapin -Name $Snap.Name
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user