add Test-Credentialstore tests
This commit is contained in:
parent
f33a243191
commit
610bed55e1
@ -20,7 +20,7 @@ image: Visual Studio 2017
|
|||||||
|
|
||||||
install:
|
install:
|
||||||
- ps: Import-Module .\tools\AppVeyor.psm1
|
- ps: Import-Module .\tools\AppVeyor.psm1
|
||||||
- ps: Invoke-InstallDependencies -Verbose
|
- ps: Invoke-InstallDependencies
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
NuGetToken:
|
NuGetToken:
|
||||||
|
@ -36,5 +36,14 @@ Describe "Test-CredentialStore" {
|
|||||||
$res | Should Be $False
|
$res | Should Be $False
|
||||||
$WarningPreference = $oWarningPreference
|
$WarningPreference = $oWarningPreference
|
||||||
}
|
}
|
||||||
|
It "Test4: Not existing path should return false" {
|
||||||
|
Test-CredentialStore -Path 'C:\foobar\CredentialStore.json' | Should -Be $false
|
||||||
|
}
|
||||||
|
It "Test5: testing private CredentialStore path" {
|
||||||
|
if (Test-Path -Path ("{0}\CredentialStore.json" -f $env:APPDATA) ) {
|
||||||
|
Remove-Item -Path ("{0}\CredentialStore.json" -f $env:APPDATA)
|
||||||
|
}
|
||||||
|
Test-CredentialStore | Should -Be $false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user