public void ShouldSetElementByUsingIndexing(int[] input, int index, int value, int[] expected)
        {
            TwoWayList <int> list = new TwoWayList <int>(input);

            list[index] = value;
            var array = list.ToArray();

            Assert.Equal(expected, array);
        }
        public void ShouldRemoveElementAtList(int[] input, int value, int[] expected)
        {
            TwoWayList <int> list = new TwoWayList <int>(input);

            list.Remove(value);
            var array = list.ToArray();

            Assert.Equal(expected, array);
        }
        public void ShouldAddElementAtListAtSomePosition(int[] input, int index, int value, int[] expected)
        {
            TwoWayList <int> list = new TwoWayList <int>(input);

            list.AddAt(value, index);
            var array = list.ToArray();

            Assert.Equal(expected, array);
        }
        public void ListShouldBeSorted(int[] input, int[] expected)
        {
            TwoWayList <int> list = new TwoWayList <int>(input);

            list.Sort();
            var array = list.ToArray();

            Assert.Equal(expected, array);
        }