Esempio n. 1
0
        public void Test0()
        {
            var minTree = new SumOfFiles();

            Assert.Equal(58, minTree.minimumTime(4, new[] { 8, 4, 6, 12 }));
        }
Esempio n. 2
0
        public void EdgeCase2()
        {
            var minTree = new SumOfFiles();

            Assert.Equal(0, minTree.minimumTime(0, null));
        }
Esempio n. 3
0
        public void EdgeCase1()
        {
            var minTree = new SumOfFiles();

            Assert.Equal(52, minTree.minimumTime(1, new[] { 52 }));
        }
Esempio n. 4
0
        public void OddCase()
        {
            var minTree = new SumOfFiles();

            Assert.Equal(82, minTree.minimumTime(5, new[] { 1, 2, 5, 10, 35 }));
        }
Esempio n. 5
0
        public void Test2()
        {
            var minTree = new SumOfFiles();

            Assert.Equal(224, minTree.minimumTime(6, new[] { 1, 2, 5, 10, 35, 89 }));
        }
Esempio n. 6
0
        public void Test1()
        {
            var minTree = new SumOfFiles();

            Assert.Equal(54, minTree.minimumTime(4, new [] { 20, 4, 8, 2 }));
        }