Exemplo n.º 1
0
        public void SumElementsTestNull()
        {
            SumNumb SumClass = new SumNumb();
            int     output   = 10;

            Assert.AreEqual(output, SumClass.SumElements(null));
        }
Exemplo n.º 2
0
        public void SumElementsTestEmpty()
        {
            List <int> emptyList = new List <int>();
            SumNumb    SumClass  = new SumNumb();
            int        output    = 0;

            Assert.AreEqual(output, SumClass.SumElements(emptyList));
        }
Exemplo n.º 3
0
        public void SumElementsTestOne()
        {
            List <int> oneList = new List <int> {
                2
            };
            SumNumb SumClass = new SumNumb();
            int     output   = 2;

            Assert.AreEqual(output, SumClass.SumElements(oneList));
        }
Exemplo n.º 4
0
        public void SumElementsTest()
        {
            List <int> numbs = new List <int> {
                2, 3, 4
            };
            SumNumb SumClass = new SumNumb();
            int     output   = 9;

            Assert.AreEqual(output, SumClass.SumElements(numbs));
        }