PowerShell7/test/powershell/ConvertTo-SecureString.Tests.ps1
2016-03-04 14:52:27 -08:00

12 lines
350 B
PowerShell

Describe "ConvertTo-SecureString" {
Context "Checking return types of ConvertTo-SecureString" {
It "Should return System.Security.SecureString after converting plaintext variable"{
$PesterTestConvert = (ConvertTo-SecureString "plaintextpester" -AsPlainText -force)
($PesterTestConvert).GetType() | Should Be securestring
}
}
}