Exemplo n.º 1
0
        /// <summary>
        /// Copies the automatic clipboard.
        /// </summary>
        /// <param name="isCopy">if set to <c>true</c> [copy].</param>
        /// <param name="testSteps">The test steps.</param>
        public static void CopyToClipboardTestSteps(bool isCopy, List <TestStep> testSteps)
        {
            ClipBoardCommand  clipBoardCommand  = isCopy ? ClipBoardCommand.Copy : ClipBoardCommand.Cut;
            ClipBoardTestStep clipBoardTestStep = new ClipBoardTestStep(testSteps, clipBoardCommand);

            ClipBoardManager <ClipBoardTestStep> .CopyToClipboard(clipBoardTestStep);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Gets from clipboard the test steps
        /// </summary>
        /// <returns>the retrieved test steps</returns>
        public static ClipBoardTestStep GetFromClipboardTestSteps()
        {
            ClipBoardTestStep clipBoardTestStep = ClipBoardManager <ClipBoardTestStep> .GetFromClipboard();

            if (clipBoardTestStep != null)
            {
                return(clipBoardTestStep);
            }
            else
            {
                return(null);
            }
        }