示例#1
0
            public void ClipboardIsDisabledForReads()
            {
                var clipboardText = "Text From Test";

                IFTestHelper.Execute("write-clipboard", clipboardText).WaitForExit();

                var proc = IFTestHelper.Execute("read-clipboard");

                proc.WaitForExit();
                Assert.Equal(clipboardText, proc.StandardOutput.ReadToEnd().Trim());

                proc = IFTestHelper.ExecuteInJob(jobObject, "read-clipboard");
                proc.WaitForExit();
                Assert.DoesNotContain(clipboardText, proc.StandardOutput.ReadToEnd().Trim());
            }
示例#2
0
 public void Dispose()
 {
     jobObject.Dispose();
     IFTestHelper.Execute("write-clipboard").WaitForExit();
 }