Beispiel #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);
        }
        /// <summary>
        /// Copies the automatic clipboard.
        /// </summary>
        /// <param name="isCopy">if set to <c>true</c> [copy].</param>
        /// <param name="testCases">The test cases.</param>
        public static void CopyToClipboardTestCases(bool isCopy, List <TestCase> testCases)
        {
            ClipBoardCommand  clipBoardCommand  = isCopy ? ClipBoardCommand.Copy : ClipBoardCommand.Cut;
            ClipBoardTestCase clipBoardTestCase = new ClipBoardTestCase(testCases, clipBoardCommand);

            ClipBoardManager <ClipBoardTestCase> .CopyToClipboard(clipBoardTestCase);

            SerializationManager.IsSerializable(clipBoardTestCase);
        }
 /// <summary>
 /// Copies the automatic clipboard.
 /// </summary>
 /// <param name="isCopy">if set to <c>true</c> [copy].</param>
 public void CopyToClipboard(bool isCopy)
 {
     this.ClipBoardCommand = isCopy ? ClipBoardCommand.Copy : ClipBoardCommand.Cut;
     ClipBoardManager <Suite> .CopyToClipboard(this);
 }