示例#1
0
        static void Main(string[] args)
        {
            Console.BackgroundColor = ConsoleColor.Blue;
            Console.Clear();
            Console.ForegroundColor = ConsoleColor.White;
            Console.Title = "My Phone Book App";

            checkArgs = new CheckArgs(args);
            if (checkArgs.IsAcceptedArg()) AnalyzeData(args);
            else Console.WriteLine("Type '\\h' for Help menu");
            /*
            CheckArgs checkArgs = new CheckArgs(args);
            Console.WriteLine(checkArgs.Count());
            Console.ReadKey();
            Console.Write("Press any key to continue");
            */
        }
示例#2
0
 public void TestCount()
 {
     CheckArgs checkArgs = new CheckArgs(new string[] { "/h", "cool" });
     Assert.AreNotEqual(true, checkArgs.IsAcceptedArg());
 }
示例#3
0
 public void TestAddAndCount()
 {
     CheckArgs checkArgs = new CheckArgs(new string[] { "count", "cool" });
     Assert.AreEqual(true, checkArgs.IsAcceptedArg());
 }