/// <summary>
        /// This function is the callback used to execute the command when the menu item is clicked.
        /// See the constructor to see how the menu item is associated with this function using
        /// OleMenuCommandService service and MenuCommand class.
        /// </summary>
        /// <param name="sender">Event sender.</param>
        /// <param name="e">Event args.</param>
        private void Execute(object sender, EventArgs e)
        {
            ThreadHelper.ThrowIfNotOnUIThread();
            var clipBoardText = ClipboardService.GetTextFromClipboard();

            if (string.IsNullOrWhiteSpace(clipBoardText))
            {
                return;
            }

            var formattedText = TextFormatService.FormatTextAsCSV(clipBoardText, true);

            TextViewService.PasteTextToTextView(ServiceProvider, formattedText);
        }
 public void GetDataFromClipboard_ClipboardHasData_ShouldReturnDataOnClipboard()
 {
     SetText("Test data getting set.");
     Assert.AreEqual("Test data getting set.", _clipboardService.GetTextFromClipboard());
 }