Open
Description
More tests should be added to validate all the interactive scenarios enabled by the new PS kernel host.
The validation tests should cover all the override methods in PSKernelHostUserInterface
implementation, including the following:
-
public override PSCredential PromptForCredential(string caption, string message, string userName, string targetName)
-
public override PSCredential PromptForCredential(string caption, string message, string userName, string targetName, PSCredentialTypes allowedCredentialTypes, PSCredentialUIOptions options)
-
public override string ReadLine()
-
public override SecureString ReadLineAsSecureString()
-
public override void Write(ConsoleColor foregroundColor, ConsoleColor backgroundColor, string value)
-
public override void Write(string value)
-
public override void WriteLine()
-
public override void WriteLine(ConsoleColor foregroundColor, ConsoleColor backgroundColor, string value)
-
public override void WriteLine(string value)
-
public override void WriteErrorLine(string value)
-
public override void WriteDebugLine(string message)
-
public override void WriteVerboseLine(string message)
-
public override void WriteWarningLine(string message)
-
public override void WriteProgress(long sourceId, ProgressRecord record)
-
public override Dictionary<string, PSObject> Prompt(string caption, string message, Collection<FieldDescription> descriptions)
-
public override int PromptForChoice(string caption, string message, Collection<ChoiceDescription> choices, int defaultChoice)