static void Main(string[] args) { string word; System.Console.WriteLine("Enter a word: "); word = System.Console.ReadLine(); PalindromeGame pal = new PalindromeGame(word); Console.WriteLine($"Is Word Palindrome?: {pal.PlayPalindrome()}"); }
// END CUT HERE // BEGIN CUT HERE public static void Main() { try { PalindromeGame ___test = new PalindromeGame(); ___test.run_test(-1); } catch(Exception e) { //Console.WriteLine(e.StackTrace); Console.WriteLine(e.ToString()); } }
// END CUT HERE // BEGIN CUT HERE public static void Main() { try { PalindromeGame ___test = new PalindromeGame(); ___test.run_test(-1); } catch (Exception e) { //Console.WriteLine(e.StackTrace); Console.WriteLine(e.ToString()); } }
public void test1() { // Arrange --> Expected Value PalindromeGame pal1 = new PalindromeGame("noon"); bool expected = true; // Act --> Actual Value bool actual = pal1.PlayPalindrome(); // Assert Assert.True(expected.Equals(actual)); }
public void test3() { // Arrange --> Expected Value PalindromeGame pal3 = new PalindromeGame("cell"); bool expected = false; // Act --> Actual Value bool actual = pal3.PlayPalindrome(); // Assert Assert.True(expected.Equals(actual)); }