diff --git a/appveyor.yml b/appveyor.yml index d1f3a05..db82d20 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -20,7 +20,7 @@ image: Visual Studio 2017 install: - ps: Import-Module .\tools\AppVeyor.psm1 - - ps: Invoke-InstallDependencies -Verbose + - ps: Invoke-InstallDependencies environment: NuGetToken: diff --git a/tests/Store/01_Test-CredentialStore.Tests.ps1 b/tests/Store/01_Test-CredentialStore.Tests.ps1 index 693184f..b32738f 100644 --- a/tests/Store/01_Test-CredentialStore.Tests.ps1 +++ b/tests/Store/01_Test-CredentialStore.Tests.ps1 @@ -36,5 +36,14 @@ Describe "Test-CredentialStore" { $res | Should Be $False $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 + } } }