Esempio n. 1
0
        public static void Main(string[] args)
        {
            var palindromes = new Palindromes (new[]{ "stressed", "swap" });
            var head = new Head (palindromes);

            head.Run (args);
        }
Esempio n. 2
0
        public void Is_no_palindrome()
        {
            var fake = new FakePalindromes ();
            fake.IsPalindrome = false;

            var sut = new Head (fake);
            sut.Run (new[]{"xyz"}); // check result visually in output window
        }
Esempio n. 3
0
        public void Is_a_palindrome()
        {
            var fake = new FakePalindromes ();
            fake.IsPalindrome = true;

            var sut = new Head (fake);
            sut.Run (new[]{"stressed"}); // check result visually in output window
        }