Beispiel #1
0
        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.");
        }
Beispiel #2
0
        private void pasteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PasteTextAction acc = new PasteTextAction(RTB);

            acc.Execute();
        }