Exemple #1
0
        public void Create_Prime_MultiplicationTable_When_Input_Is_List_Of_Prime_Numbers_Return_Multiplication_Answers()
        {
            //Arrange
            var input = new List <int>()
            {
                2, 3, 5
            };

            var expectedResult = new List <List <int> >()
            {
                new List <int>()
                {
                    4, 6, 10
                }, new List <int>()
                {
                    6, 9, 15
                }, new List <int>()
                {
                    10, 15, 25
                }
            };

            //Act
            var actualResult = _prime.CreatePrimeMultiplicationTable(input);

            //Arrange
            Assert.Equal(expectedResult, actualResult);
            Assert.Equal(3, actualResult.Count);
        }