public void ArraySearchSortedNoSize3BinarySearchNoSizeCompleteTestNullArray()
 {
     try
     {
         ArraySearchSortedNoSize3BinarySearchNoSizeComplete.Search(null, 23);
     }
     catch (ArgumentException)
     {
         Assert.IsTrue(true);
         return;
     }
     Assert.Fail();
 }
 public void ArraySearchSortedNoSize3BinarySearchNoSizeCompleteTestNegativeIndex()
 {
     try
     {
         var listy = new Listy(new[] { 3, 5, 7, 7, 8, 23, 38, 56 });
         ArraySearchSortedNoSize3BinarySearchNoSizeComplete.Search(listy, -2);
     }
     catch (ArgumentException)
     {
         Assert.IsTrue(true);
         return;
     }
     Assert.Fail();
 }
        public void ArraySearchSortedNoSize3BinarySearchNoSizeCompleteTestOneElementNotFound()
        {
            var listy = new Listy(new[] { 3 });

            Assert.AreEqual(-1, ArraySearchSortedNoSize3BinarySearchNoSizeComplete.Search(listy, 23));
        }
        public void ArraySearchSortedNoSize3BinarySearchNoSizeCompleteTestEmptyLists()
        {
            var listy = new Listy(new int[0]);

            Assert.AreEqual(-1, ArraySearchSortedNoSize3BinarySearchNoSizeComplete.Search(listy, 23));
        }
        public void ArraySearchSortedNoSize3BinarySearchNoSizeCompleteTestValueNotFound()
        {
            var listy = new Listy(new[] { 3, 5, 7, 7, 8, 23, 38, 56 });

            Assert.AreEqual(-1, ArraySearchSortedNoSize3BinarySearchNoSizeComplete.Search(listy, 100));
        }