Hi there,
I am writing a unit testcase for a workflow that uses multiple GetAsset and GetCredential, returning as output arguments strings, NetworkCredential and SecureString .
What are good ways to use the Testing activities “Verification” to check for successful retrieval?
- I can “verify Expression with Operator” the assets as Inequality with String.Empty
- also “verify Expression with Operator” a username, again as Inequality with String.Empty
But how to check a SecurePassword property, or a SecureString?
Because when I instantiate a New NetworkCredential and access the .Password, then the content gets logged out! scary
I tried comparing against Nothing and such, but cannot come up with a working assertion.