示例#1
0
 public void RunBigTextCmd()
 {
     using (TerminalApp app = new TerminalApp(TestContext, "cmd.exe"))
     {
         var root        = app.GetRoot();
         var contentPath = app.GetFullTestContentPath("big.txt");
         root.SendKeys($"type \"{contentPath}\"");
         root.SendKeys(Keys.Enter);
         System.Threading.Thread.Sleep(25000);
     }
 }
示例#2
0
 public void RunBigTextPowershellBulk()
 {
     using (TerminalApp app = new TerminalApp(TestContext))
     {
         var root        = app.GetRoot();
         var contentPath = app.GetFullTestContentPath("big.txt");
         root.SendKeys($"Get-Content -ReadCount 0 \"{contentPath}\" | Out-Default");
         root.SendKeys(Keys.Enter);
         System.Threading.Thread.Sleep(25000);
     }
 }
示例#3
0
 public void RunCacafireCmd()
 {
     using (TerminalApp app = new TerminalApp(TestContext, "cmd.exe"))
     {
         var root = app.GetRoot();
         root.SendKeys("chcp 65001" + Keys.Enter); // This output needs UTF-8
         var contentPath = app.GetFullTestContentPath("cacafire.txt");
         root.SendKeys($"type \"{contentPath}\"");
         root.SendKeys(Keys.Enter);
         System.Threading.Thread.Sleep(25000);
     }
 }