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()); }
public void Dispose() { jobObject.Dispose(); IFTestHelper.Execute("write-clipboard").WaitForExit(); }