示例#1
0
        public void tGeneralLower()
        {
            int tElement = 4;

            Mixed.BSearchInsertion(ref tListLower, tElement);

            List <int> tVal = new List <int>()
            {
                0, 1, 2, 3, 3, 4, 6
            };

            CollectionAssert.AreEqual((List <int>)tListLower, tVal);
        }
示例#2
0
        public void tBeginningOfList()
        {
            int tElement = -1;

            Mixed.BSearchInsertion(ref tList, tElement);

            List <int> tVal = new List <int>()
            {
                -1, 0, 1, 2, 3, 5, 6
            };

            CollectionAssert.AreEqual((List <int>)tList, tVal);
        }
示例#3
0
        public void tEndOfList()
        {
            int tElement = 7;

            Mixed.BSearchInsertion(ref tList, tElement);

            List <int> tVal = new List <int>()
            {
                0, 1, 2, 3, 5, 6, 7
            };

            CollectionAssert.AreEqual((List <int>)tList, tVal);
        }