public void Sum3ValuesProperty() { //initialize var calc = new Calc(); //execute var result = calc.Sum(1, 2, 3); //assert result.Should().Be(6); }
public void SumEmptyListProperly() { //initialize var calc = new Calc(); //execute var result = calc.Sum(new List<int>()); //assert result.Should().Be(0); }
public void Sum2ItemListProperly() { //initialize var calc = new Calc(); //execute var result = calc.Sum(new List<int> { 1, 1 }); //assert result.Should().Be(2); }
public void SumListOfNValuesProperly() { //initialize var nums = Enumerable.Range(1, 10).ToList(); var expected = nums.Sum(); var calc = new Calc(); //execute var result = calc.Sum(nums); //assert result.Should().Be(expected); }
public void SumTwoPositiveIntegerValuesProperly() { //initialize var calc = new Calc(); //execute var result = calc.Sum(1, 2); //assert result.Should().Be(3); }