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();

            reversing.ValidateConsistency();
            items.Insert(index, new Item());
            reversing.ValidateConsistency();
        }
        public void Reversing_Insert1()
        {
            ObservableCollection <Item> items = new ObservableCollection <Item>();

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

            reversing.ValidateConsistency();
            items.Insert(0, new Item());
            reversing.ValidateConsistency();
        }
        public void Reversing_Insert1()
        {
            ObservableCollection <Item> items = new ObservableCollection <Item>();

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

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

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

            reversing.ValidateConsistency();
            items.RemoveAt(0);
            reversing.ValidateConsistency();
        }
        public void Reversing_Initialization_01()
        {
            ObservableCollection <Item> items = new ObservableCollection <Item>();

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

            reversing.ValidateConsistency();
        }
        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();

            reversing.ValidateConsistency();
            items.RemoveAt(index);
            reversing.ValidateConsistency();
        }
        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();

            reversing.ValidateConsistency();
            items[index] = new Item();
            reversing.ValidateConsistency();
        }
Example #8
0
        public void Reversing_Move(
            [Range(0, 4, 1)] int oldIndex,
            [Range(0, 4, 1)] int newIndex)
        {
            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.ValidateConsistency();
            items.Move(oldIndex, newIndex);
            reversing.ValidateConsistency();
            consumer.Dispose();
        }