예제 #1
0
        public void TestLargestPalindromeProduct3Digit()
        {
            var task        = new Task4();
            int digitsCount = 3;

            Assert.AreEqual(906609, task.Run(digitsCount), $"Largest palindrome product of {digitsCount} is incorrect");
        }
예제 #2
0
        public void RunsSecondExample()
        {
            var run = Task4.Run(2, ParseExample("1 3 1"));

            Assert.AreEqual("1 2", run);
        }
예제 #3
0
 public static void Main()
 {
     Task4.Run();
 }
예제 #4
0
        public void RunsFirstExample()
        {
            var run = Task4.Run(3, ParseExample("1 2 3"));

            Assert.AreEqual("-1 -1", run);
        }