Exemplo n.º 1
0
        public void test4()
        {
            var  arr      = new[] { 6, 2 };
            bool add10000 = true;
            int  expected = 10008; // 6+2+10000
            int  result   = CSharpMethods.SumEdges(arr, add10000);

            Assert.AreEqual(expected, result);
        }
Exemplo n.º 2
0
        public void test6()
        {
            var  arr      = new[] { 100, 200, 500, 77 };
            bool add10000 = true;
            int  expected = 10177; // 100+77+10000
            int  result   = CSharpMethods.SumEdges(arr, add10000);

            Assert.AreEqual(expected, result);
        }
Exemplo n.º 3
0
        public void test2()
        {
            var  arr      = new[] { 4, 11, 15 };
            bool add10000 = true;
            int  expected = 10019; // 4+15+10000
            int  result   = CSharpMethods.SumEdges(arr, add10000);

            Assert.AreEqual(expected, result);
        }