public void TestMethod1()
        {
            //Arrange
            string test1 = "scrap";
            string test2 = "1991";
            string test3 = "5never ODd,...., orEv en.5";

            CodingChallenge.CCLib tester = new CodingChallenge.CCLib();
            //Act
            tester.Check(test1);
            tester.Check(test2);
            tester.Check(test3);
            //Assert
            Assert.AreEqual(test1, "scrap");
            Assert.AreEqual(test2, "1991");
            Assert.AreEqual(test3, "5never ODd,...., orEv en.5");
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            string test;
            CCLib  check = new CCLib();

            Console.WriteLine("Please enter a phrase: ");
            test = Console.ReadLine();
            if (check.Check(test))
            {
                Console.WriteLine(test + " is a palindrome.");
            }
            else
            {
                Console.WriteLine(test + " is not a palindrome.");
            }
            Console.ReadKey();
        }