public void DemoTest_CommandLine() { //Create CommandLineProcessor IConfiguration config = UnitTestHelper.GetConfig(); CommandLineProcessor processor = new CommandLineProcessor(config); // to run the processor we need an argument array. // this one will analyze MockLibrary.dll with the inline documentation // provided by MockLibrary.xml. Only the types whose namespace // starts with ‘MockLibrary’ are listed. And we also generate the API for // private elements. string[] args = new string[5]; args[0] = "/assemblies:" + UnitTestHelper.MOCKLIBPATH; args[1] = "/docFiles:" + UnitTestHelper.MOCKXMLPATH; args[2] = "/modules:MockLibrary.dll"; args[3] = "/typePrefixes:MockLibrary"; args[4] = "/documentPrivates"; // create a new XmlDocument with root <apispec> XmlDocument apiSpec = new XmlDocument(); apiSpec.LoadXml("<apispec></apispec>"); // generate the API spec to apiSpec XmlDocument processor.ProcessDocument(args, apiSpec); }