예제 #1
0
        public void UsageTest()
        {
            var args = new MyTestCmdLineObject();

            args.InitializeEmpty();
            Debug.WriteLine(args.Options.Usage);
            Assert.AreEqual("TESTAPP [/H <Hello>] [/FavoriteCar <FavoriteCar>] [/?[-]]", args.Options.Usage);
        }
예제 #2
0
        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));
        }