public void MergeSortMethod_LargeArray_SortAscending()
        {
            int[] array = RandomArrayGenerating.GenerateArray(1000);

            int[] actual = ArrayExtension.MergeSort(array);
            bool  result = SortedArrayChecker.CheckSortedArray(array);

            Assert.IsTrue(result);
        }
        public void FindMaxElement_ArrayWith1000Elements_MaxElement()
        {
            int[] array  = RandomArrayGenerating.GenerateArray(1000);
            int   actual = ArrayExtension.FindMaxElement(array);

            int expected = array.Max();

            Assert.AreEqual(expected, actual);
        }
        public void FilterArrayByKey_ArrayWith1000000Elements_()
        {
            int[] array = RandomArrayGenerating.GenerateArray(1000000);
            int   key   = 3;

            int[] actual = ArrayExtension.FilterArrayByKey(array, 3);

            List <int> expected = new List <int>();

            for (int i = 0; i < array.Length; i++)
            {
                string t = array[i].ToString();
                if (t.Contains(key.ToString()))
                {
                    expected.Add(Convert.ToInt32(t));
                }
            }

            Assert.AreEqual(expected, actual);
        }