public void Added_messages_are_copied_to_the_clipboard_on_demand()
        {
            ShortcutMemorizer shortcutMemorizer = new ShortcutMemorizer();

            Clipboard.Clear();
            Assert.IsFalse(Clipboard.ContainsText());
            shortcutMemorizer.SetMemosToCliboard();
            Assert.IsTrue(Clipboard.ContainsText());
        }
        public void Clipboard_contains_header_text()
        {
            ShortcutMemorizer shortcutMemorizer = new ShortcutMemorizer();

            shortcutMemorizer.SetMemosToCliboard();
            string text = Clipboard.GetText();

            Assert.IsTrue(text.StartsWith(ShortcutMemorizer.HEADER_TEXT));
        }
        public void Clipboard_contains_memo()
        {
            ShortcutMemorizer shortcutMemorizer = new ShortcutMemorizer();

            shortcutMemorizer.AddShortCut("123", "memo 123");
            shortcutMemorizer.SetMemosToCliboard();
            string text = Clipboard.GetText();

            Assert.IsTrue(text.Contains("memo 123 : 123"));
        }
Beispiel #4
0
 private void CopyAllMemosToClipboardToolStripMenuItemClick(object sender, EventArgs e)
 {
     memos.SetMemosToCliboard();
 }