public void GenerateUsageTest() { var parser = new CmdLineParser <TestCmdLineObj>(); var results = parser.Parse(new string[] { }); results.ApplicationFileName = "test.exe"; var generator = new HelpGenerator(results); var usage = generator.GetUsage(); Assert.AreEqual("test.exe <Name|String> [/Type <Father|Mother|Child>]", usage); }