Exemple #1
0
        public void Task_02_Select_03_Order()
        {
            var c = new MultipleSelectionContainer <SelectionItem>();

            c.Select(B);
            c.Select(A);
            c.Select(C);
            c.SelectedItems.Should().BeEquivalentTo(B, A, C);
        }
Exemple #2
0
        public void Task_03_Unselect_02_Multiple()
        {
            var c = new MultipleSelectionContainer <SelectionItem>();

            c.Select(A);
            c.Select(B);
            c.Select(C);
            c.Unselect(new [] { A, C });
            c.SelectedItems.Should().BeEquivalentTo(B);
        }
Exemple #3
0
        public void Task_03_Unselect_01_One()
        {
            var c = new MultipleSelectionContainer <SelectionItem>();

            c.Select(A);
            c.Select(B);
            c.Unselect(B);
            c.SelectedItems.Count.Should().Be(1);
            c.SelectedItems.Should().BeEquivalentTo(A);
        }
Exemple #4
0
        public void Task_02_Select_02_Multiple()
        {
            var c = new MultipleSelectionContainer <SelectionItem>();

            c.Select(B);
            c.Select(A);
            c.SelectedItems.Count.Should().Be(2);
            c.SelectedItems.Should().BeEquivalentTo(B, A);
            c[B].Should().BeTrue();
            c[A].Should().BeTrue();
        }
Exemple #5
0
 public void SetEmptyFolder(IGoogleDriveFolder folder)
 {
     if (folder != null)
     {
         EmptyFolderContainer.Select(folder.Id);
     }
 }
Exemple #6
0
 private void HandleSelect()
 {
     MultipleSelectionContainer.Select(new[] { d, a, e });
 }