Example #1
0
        public void TestBedDate()
        {
            Console.Write("Your input: ");
            string input = Console.ReadLine();

            Console.WriteLine(ItMath.IsDate(input));
        }
Example #2
0
        public void TestBedFloat()
        {
            Console.Write("Your input: ");
            string input = Console.ReadLine();

            Console.WriteLine(ItMath.IsNumber(input));
        }
Example #3
0
        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));
            }
        }