2020-03-24 19:08:37 +01:00
|
|
|
# Copyright (c) Microsoft Corporation.
|
2018-02-13 18:23:53 +01:00
|
|
|
# Licensed under the MIT License.
|
2017-09-01 20:50:15 +02:00
|
|
|
Describe "Credential tests" -Tags "CI" {
|
|
|
|
It "Explicit cast for an empty credential returns null" {
|
|
|
|
# We should explicitly check that the expression returns $null
|
2018-03-14 20:13:32 +01:00
|
|
|
[PSCredential]::Empty.GetNetworkCredential() | Should -BeNullOrEmpty
|
2017-09-01 20:50:15 +02:00
|
|
|
}
|
|
|
|
}
|