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)); }
public void Test5(int[] numbers) { var list = new List <int>(numbers); SumOperations sumOperations = new SumOperations(); Assert.Equal(0, sumOperations.Sum(null)); }
public void Test3() { SumOperations sumOperationsTwo = new SumOperations(); List <int> listOne = new List <int> { 8 }; Assert.Equal(8, sumOperationsTwo.Sum(listOne)); }