public ShellStreamDeligater Expect(Regex regex)
 {
     Stream.Expect(regex);
     while (!regex.IsMatch(CopyText.ToString()))
     {
         Thread.Sleep(50);
     }
     return(this);
 }
 public ShellStreamDeligater CopyEnd()
 {
     LastCopiedTest = CopyText.Length > 0 ? CopyText.ToString() : "EMPTY";
     if (IsWriteConsole)
     {
         Console.WriteLine($"복사 완료 : {LastCopiedTest}");
     }
     ActionUtility.UI(() => System.Windows.Clipboard.SetText(LastCopiedTest)).Wait();
     return(this);
 }
 public ShellStreamDeligater Expect(Regex regex, TimeSpan timeout)
 {
     if (Stream.Expect(regex, timeout) == null)
     {
         throw new TimeoutException();
     }
     while (!regex.IsMatch(CopyText.ToString()))
     {
         Thread.Sleep(50);
     }
     return(this);
 }