コード例 #1
0
        public void Test_SumHandlingDelimiters_Steps8()
        {
            // Arrange
            int expected = 948;

            double[] array = new double[] { -1, -50, 999 };

            // Act
            double actual_result = WordCalc.Sum_MultipleNumbers(array);

            // Assert
            Assert.Equal(expected, actual_result);
        }
コード例 #2
0
        public void Test_MultipleSum()
        {
            //Unit Tests for Step 4
            // Arrange
            int expected = 5;

            double[] array = new double[] { 1, 1, 1, 1, 1, 0 };

            // Act
            double actual_result = WordCalc.Sum_MultipleNumbers(array);

            // Assert
            Assert.Equal(expected, actual_result);
        }