Beispiel #1
0
        public void TestBucketSort_null()
        {
            int[] expected = null;
            var   actual   = Sorts.BucketSort(expected, 100);

            CollectionAssert.AreEqual(expected, actual);
        }
Beispiel #2
0
        public void TestBucketSort_ExpectedException()
        {
            var expected = sortArray;
            var actual   = Sorts.BucketSort(array, -0);

            CollectionAssert.AreEqual(expected, actual);
        }
Beispiel #3
0
        public void TestBucketSort_norm()
        {
            var expected = sortArray;
            var actual   = Sorts.BucketSort(array, 100);

            CollectionAssert.AreEqual(expected, actual);
        }