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

            c.Unselect(A);
            c.SelectedItems.Count.Should().Be(0);
        }
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);
        }