/// <summary> /// Moves one or more items in solution explorer using the keyboard to cut and paste. /// </summary> /// <param name="destination"></param> /// <param name="source"></param> private static void MoveByKeyboard(IVisualStudioInstance vs, ITreeNode destination, params ITreeNode[] source) { AutomationWrapper.Select(source.First()); for (int i = 1; i < source.Length; i++) { AutomationWrapper.AddToSelection(source[i]); } vs.ControlX(); AutomationWrapper.Select(destination); vs.ControlV(); vs.MaybeCheckMessageBox(TestUtilities.MessageBoxButton.Ok, "One or more files will be"); }
/// <summary> /// Moves one or more items in solution explorer to the destination using the mouse. /// </summary> private static void MoveByMouse(IVisualStudioInstance vs, ITreeNode destination, params ITreeNode[] source) { destination.DragOntoThis(Key.LeftShift, source); vs.MaybeCheckMessageBox(TestUtilities.MessageBoxButton.Ok, "One or more files will be"); }