public void PasteActionToClipboard() { RichTextBox rtb = new RichTextBox(); Clipboard.SetText("All Watched Over By Machines Of Loving Grace"); var ac = new PasteTextAction(rtb); ac.Execute(); Assert.AreEqual("All Watched Over By Machines Of Loving Grace", rtb.Text, "Text appears on the textbox."); }
private void pasteToolStripMenuItem_Click(object sender, EventArgs e) { PasteTextAction acc = new PasteTextAction(RTB); acc.Execute(); }