public void TestBedDate() { Console.Write("Your input: "); string input = Console.ReadLine(); Console.WriteLine(ItMath.IsDate(input)); }
private static void RunDateTest(string[] testStringsBad, string[] testStringsGood) { Console.WriteLine("-- Testing bad strings --"); foreach (String test in testStringsBad) { Console.WriteLine("String \"{0}\" is a date: {1}", test, ItMath.IsDate(test)); } Console.WriteLine("-- Testing good strings --"); foreach (String test in testStringsGood) { Console.WriteLine("String \"{0}\" is a date: {1}", test, ItMath.IsDate(test)); } }