Example #1
0
        public void Test1(int[] numbers)
        {
            var           list          = new List <int>(numbers);
            SumOperations sumOperations = new SumOperations();

            Console.WriteLine(sumOperations.Sum(list));
            Assert.Equal(8, sumOperations.Sum(list));
        }
Example #2
0
        public void Test5(int[] numbers)
        {
            var list = new List <int>(numbers);


            SumOperations sumOperations = new SumOperations();

            Assert.Equal(0, sumOperations.Sum(null));
        }
Example #3
0
        public void Test3()
        {
            SumOperations sumOperationsTwo = new SumOperations();
            List <int>    listOne          = new List <int> {
                8
            };

            Assert.Equal(8, sumOperationsTwo.Sum(listOne));
        }