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"); */ }
public void TestCount() { CheckArgs checkArgs = new CheckArgs(new string[] { "/h", "cool" }); Assert.AreNotEqual(true, checkArgs.IsAcceptedArg()); }
public void TestAddAndCount() { CheckArgs checkArgs = new CheckArgs(new string[] { "count", "cool" }); Assert.AreEqual(true, checkArgs.IsAcceptedArg()); }