public void TestGetTextDocument() { var document = new CommandDocument(typeof(TestCommand)); var document2 = new CommandDocument(typeof(TestCommand2)); CommandDocumentGenerator generator = new CommandDocumentGenerator(document); Assert.AreEqual(@"TestCommand <numberArgument> [--string-argument <value>]", generator.MakeTextDocument()); CommandDocumentGenerator generator2 = new CommandDocumentGenerator(document2); Assert.AreEqual(@"TestCommand2 <numberArgument> <stringArgument> [--flag-argument]", generator2.MakeTextDocument()); }
public CommandDocumentGenerator(CommandDocument document) { this.document = document; }