public void TestSelectOrRemoveFileForMultipleSelection() { string gitconfigFile = $@"{Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}\.gitconfig"; FileSystemController fileSystemController = new FileSystemController(); Assert.False(fileSystemController.SelectedFiles.Any()); fileSystemController.SelectOrRemoveFileForMultipleSelection(gitconfigFile); Assert.Contains(fileSystemController.SelectedFiles, file => file.FullName == gitconfigFile); fileSystemController.SelectOrRemoveFileForMultipleSelection(gitconfigFile); Assert.DoesNotContain(fileSystemController.SelectedFiles, file => file.FullName == gitconfigFile); }