/// <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); }
/// <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); } }