public void AddOrRemoveFileAccordingToIsSelected_Remove_FileVMIsInListSelectedFiles() { SelectionConfiguration selectionConfiguration = new SelectionConfiguration(); SelectedExplorerTreeItemHandler selectedExplorerTreeItemHandler = new SelectedExplorerTreeItemHandler(selectionConfiguration); FileSelectionHandler fileSelectionHandler = new FileSelectionHandler(selectedExplorerTreeItemHandler, selectionConfiguration); FileItemViewModel fileItemVM = new FileItemViewModel(); selectedExplorerTreeItemHandler.SelectedFiles.Add(new FileItemViewModel()); selectedExplorerTreeItemHandler.SelectedFiles.Add(fileItemVM); selectedExplorerTreeItemHandler.SelectedFiles.Add(new FileItemViewModel()); selectedExplorerTreeItemHandler.SelectedFiles.Add(new FileItemViewModel()); fileSelectionHandler.AddOrRemoveFileAccordingToIsSelected(false, fileItemVM); Assert.AreEqual(-1, selectedExplorerTreeItemHandler.SelectedFiles.IndexOf(fileItemVM)); }
internal DirectorySelectionHandler(SelectedExplorerTreeItemHandler selectedItemHandler, SelectionConfiguration selectionConfiguration) : base(selectedItemHandler) { this.SelectionConfiguration = selectionConfiguration; }