Beispiel #1
0
        public void Reversing_Insert(
            [Values(true, false)] bool item0,
            [Values(true, false)] bool item1,
            [Values(true, false)] bool item2,
            [Values(true, false)] bool item3,
            [Values(true, false)] bool item4,
            [Range(0, 4, 1)] int index,
            [Values(true, false)] bool newValue)
        {
            ObservableCollection <Item> items = new ObservableCollection <Item>(
                new[]
            {
                new Item(),
                new Item(),
                new Item(),
                new Item(),
                new Item()
            }
                );

            Reversing <Item> reversing = items.Reversing().For(consumer);

            reversing.ValidateInternalConsistency();
            items.Insert(index, new Item());
            reversing.ValidateInternalConsistency();
            consumer.Dispose();
        }
Beispiel #2
0
        public void Reversing_Insert1()
        {
            ObservableCollection <Item> items = new ObservableCollection <Item>();

            Reversing <Item> reversing = items.Reversing().For(consumer);

            reversing.ValidateInternalConsistency();
            items.Insert(0, new Item());
            reversing.ValidateInternalConsistency();
            consumer.Dispose();
        }
Beispiel #3
0
        public void Reversing_Remove1(
            [Values(true, false)] bool item0)
        {
            ObservableCollection <Item> items = new ObservableCollection <Item>(
                new[]
            {
                new Item()
            }
                );

            Reversing <Item> reversing = items.Reversing().For(consumer);

            reversing.ValidateInternalConsistency();
            items.RemoveAt(0);
            reversing.ValidateInternalConsistency();
            consumer.Dispose();
        }
Beispiel #4
0
        public void Reversing_Remove(
            [Range(0, 4, 1)] int index)
        {
            ObservableCollection <Item> items = new ObservableCollection <Item>(
                new[]
            {
                new Item(),
                new Item(),
                new Item(),
                new Item(),
                new Item()
            }
                );

            Reversing <Item> reversing = items.Reversing().For(consumer);

            reversing.ValidateInternalConsistency();
            items.RemoveAt(index);
            reversing.ValidateInternalConsistency();
            consumer.Dispose();
        }
Beispiel #5
0
        public void Reversing_Set(
            [Range(0, 4, 1)] int index,
            [Values(true, false)] bool itemNew)
        {
            ObservableCollection <Item> items = new ObservableCollection <Item>(
                new[]
            {
                new Item(),
                new Item(),
                new Item(),
                new Item(),
                new Item()
            }
                );

            Reversing <Item> reversing = items.Reversing().For(consumer);

            reversing.ValidateInternalConsistency();
            items[index] = new Item();
            reversing.ValidateInternalConsistency();
            consumer.Dispose();
        }