public static void Main(string[] args) { var palindromes = new Palindromes (new[]{ "stressed", "swap" }); var head = new Head (palindromes); head.Run (args); }
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 }
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 }