public void ArrayMergeSorted1SimpleCompleteTestEmptyLists()
        {
            var nums1 = new List <int>();
            var nums2 = new List <int>();
            var nums  = ArrayMergeSorted1SimpleComplete.Merge(nums1, nums2);

            var numsResult = new List <int>();

            CollectionAssert.AreEqual(nums, numsResult);
        }
 public void ArrayMergeSorted1SimpleCompleteTestNullLists()
 {
     try
     {
         ArrayMergeSorted1SimpleComplete.Merge(null, null);
     }
     catch (ArgumentException)
     {
         Assert.IsTrue(true);
         return;
     }
     Assert.Fail();
 }
 public void ArrayMergeSorted1SimpleCompleteTestNullListList2()
 {
     try
     {
         var nums1 = new List <int>();
         ArrayMergeSorted1SimpleComplete.Merge(nums1, null);
     }
     catch (ArgumentException)
     {
         Assert.IsTrue(true);
         return;
     }
     Assert.Fail();
 }
        public void ArrayMergeSorted1SimpleCompleteTestTwoElementsReversed()
        {
            var nums1 = new List <int> {
                7
            };
            var nums2 = new List <int> {
                3
            };
            var nums = ArrayMergeSorted1SimpleComplete.Merge(nums1, nums2);

            var numsResult = new List <int> {
                3, 7
            };

            CollectionAssert.AreEqual(nums, numsResult);
        }
        public void ArrayMergeSorted1SimpleCompleteTestOdd()
        {
            var nums1 = new List <int> {
                3, 7, 23, 56
            };
            var nums2 = new List <int> {
                5, 7, 8
            };
            var nums = ArrayMergeSorted1SimpleComplete.Merge(nums1, nums2);

            var numsResult = new List <int> {
                3, 5, 7, 7, 8, 23, 56
            };

            CollectionAssert.AreEqual(nums, numsResult);
        }