public void DragGroupOnFavoriteTest() { DragEventArgs args = CreateDragArguments(this.sourceGroupNode); var keyModifiers = new TestKeyModifiers(); var dragdrop = new TreeViewDragDrop(this.Persistence, args, keyModifiers, null, this.targetFavorite); Assert.AreEqual(DragDropEffects.None, dragdrop.Effect); }
private TreeViewDragDrop CreateValidFavoriteDrop(DragDropEffects effect) { var args = CreateDragArguments(this.sourceFavoriteNode); args.Effect = effect; // for drop the effect isnt obtained from current state, but from the arguments var keyModifiers = new TestKeyModifiers(); return new TreeViewDragDrop(this.Persistence, args, keyModifiers, this.targetGroup, null); }
private TreeViewDragDrop CreateGroupDragDrop(IGroup targetGroup) { var args = CreateDragArguments(this.sourceGroupNode); var keyModifiers = new TestKeyModifiers(); return new TreeViewDragDrop(this.Persistence, args, keyModifiers, targetGroup, null); }
private TreeViewDragDrop CreateValidFavoriteDrag(bool withShift, bool withControl) { var args = CreateDragArguments(this.sourceFavoriteNode); var keyModifiers = new TestKeyModifiers() { WithControl = withControl, WithShift = withShift }; return new TreeViewDragDrop(this.Persistence, args, keyModifiers, this.targetGroup, null); }
private TreeViewDragDrop CreateFavoriteDragDrop(IFavorite target) { var args = CreateDragArguments(this.sourceFavoriteNode); var keyModifiers = new TestKeyModifiers(); return new TreeViewDragDrop(this.Persistence, args, keyModifiers, null, target); }