public void ThrowsNumberCanNotBeNegativeException_GivenNegativeInt()
            {
                Random random            = new Random();
                int    randomNegativeInt = random.Next(int.MinValue, -1);

                Assert.Throws <PalindromeProduct.IntParamCanNotBeNegativeException>(() => palindromeProduct.GetLargestPalindromeProduct(randomNegativeInt));
            }
Пример #2
0
        public void SuchThatIt_ReturnsTheCorrectAnswer()
        {
            const int correctAnswer = 906609;
            var       result        = palindromeProduct.GetLargestPalindromeProduct(3);

            Assert.AreEqual(correctAnswer, result);
        }