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

            head.Run (args);
        }
Example #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
        }
Example #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
        }