public void CanMultiply() { const int multiplicand = 2; const int multiplier = 3; const int expectedProduct = 6; var actualProduct = TwoIntegerOperations.Multiply(multiplicand, multiplier); Assert.Equal(expectedProduct, actualProduct); }
private static IEnumerable <decimal> GetTwoIntegerOperationsSolutionsOrderDoesNotMatter(IReadOnlyList <int> userPickedNumbers) { var generatedPossibleSolutions = new List <decimal>(); var numberOne = userPickedNumbers[0]; var numberTwo = userPickedNumbers[1]; var sumOfNumberOneNumberTwo = TwoIntegerOperations.Add(numberOne, numberTwo); var productOfNumberOneNumberTwo = TwoIntegerOperations.Multiply(numberOne, numberTwo); generatedPossibleSolutions.Add(sumOfNumberOneNumberTwo); generatedPossibleSolutions.Add(productOfNumberOneNumberTwo); return(generatedPossibleSolutions); }