Esempio n. 1
0
        public void sortTypeTest2()
        {
            WhatSort target = new WhatSort();

            string[] name     = { "BOB", "BOB", "DAVE", "DAVE" };
            int[]    age      = { 22, 35, 35, 30 };
            int[]    wt       = { 122, 122, 195, 200 };
            string   expected = "NOT";
            string   actual;

            actual = target.sortType(name, age, wt);
            Assert.IsTrue(expected.CompareTo(actual) == 0);
        }
Esempio n. 2
0
        public void sortTypeTest6()
        {
            WhatSort target = new WhatSort();

            string[] name     = { "A", "A", "A", "A" };
            int[]    age      = { 1, 2, 3, 4 };
            int[]    wt       = { 6, 5, 4, 3 };
            string   expected = "IND";           // NAW, NWA, and more
            string   actual;

            actual = target.sortType(name, age, wt);
            Assert.IsTrue(expected.CompareTo(actual) == 0);
        }