public void UsageTest() { var args = new MyTestCmdLineObject(); args.InitializeEmpty(); Debug.WriteLine(args.Options.Usage); Assert.AreEqual("TESTAPP [/H <Hello>] [/FavoriteCar <FavoriteCar>] [/?[-]]", args.Options.Usage); }
public void CmdLineDescriptionTest() { string test = "This is a test\ntest test test"; string[] lines = test.Lines(); foreach (string line in lines) { Debug.WriteLine(line); } var args = new MyTestCmdLineObject(); args.InitializeEmpty(); Debug.WriteLine(args.GetHelpText(50)); }