9 lines
334 B
PowerShell
9 lines
334 B
PowerShell
# Copyright (c) Microsoft Corporation.
|
|
# Licensed under the MIT License.
|
|
Describe "Credential tests" -Tags "CI" {
|
|
It "Explicit cast for an empty credential returns null" {
|
|
# We should explicitly check that the expression returns $null
|
|
[PSCredential]::Empty.GetNetworkCredential() | Should -BeNullOrEmpty
|
|
}
|
|
}
|