PowerShell/test/powershell/engine/Basic/Credential.Tests.ps1

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
}
}