示例#1
0
        public void ConcatenatedProduct_Of9AndNumbers1To5_ReturnsCorrectString()
        {
            // Arrange
            var integer = 9;
            var numbersToMultiplyWith = new List <int> {
                1, 2, 3, 4, 5
            };
            var expectedResult = "918273645";

            // Act
            var result = PandigitalHelper.ConcatenatedProduct(integer, numbersToMultiplyWith);

            // ASsert
            result.Should().Be(expectedResult);
        }
示例#2
0
        public void ConcatenatedProduct_Of192AndNumbers1To3_ReturnsCorrectString()
        {
            // Arrange
            var integer = 192;
            var numbersToMultiplyWith = new List <int> {
                1, 2, 3
            };
            var expectedResult = "192384576";

            // Act
            var result = PandigitalHelper.ConcatenatedProduct(integer, numbersToMultiplyWith);

            // ASsert
            result.Should().Be(expectedResult);
        }