mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
15 lines
567 B
PowerShell
15 lines
567 B
PowerShell
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
# Licensed under the MIT License.
|
|
Describe "ConvertTo--SecureString" -Tags "CI" {
|
|
|
|
Context "Checking return types of ConvertTo--SecureString" {
|
|
|
|
It "Should return System.Security.SecureString after converting plaintext variable"{
|
|
#[SuppressMessage("Microsoft.Security", "CS002:SecretInNextLine", Justification="Demo/doc/test secret.")]
|
|
$PesterTestConvert = (ConvertTo-SecureString "plaintextpester" -AsPlainText -force)
|
|
$PesterTestConvert | Should -BeOfType securestring
|
|
|
|
}
|
|
}
|
|
}
|