minor fixes

This commit is contained in:
OCram85 2018-03-13 14:32:15 +01:00
parent 5a4fcb4de5
commit 7e2da468d5

View File

@ -33,12 +33,11 @@ Describe "Test-ModuleName" {
Context "Working with PSSnapins" {
It "Loading first PSSnaping should not throw " {
$Snap = Get-PSSnapin -Registered
$Snap | Format-List | Out-String | Write-Verbose -Verbose
$Snap = Get-PSSnapin -Registered | Select-Object -First 1
{ $loaded = Test-Module -Name $Snap.Name -Type PSSnapin } | Should -Not -Throw
}
It "Loading first PSSnaping should return true" {
$Snap = Get-PSSnapin -Registered
$Snap | Format-List | Out-String | Write-Verbose -Verbose
$Snap = Get-PSSnapin -Registered | Select-Object -First 1
Test-Module -Name $Snap.Name -Type PSSnapin | Should -Be $true
}
}