mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
* GetNetworkCredential() returns null if PSCredential has empty user name * Fix test
7 lines
255 B
PowerShell
7 lines
255 B
PowerShell
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 Be $null
|
|
}
|
|
}
|