private static void PortToTripleSlash( string testDataDir, bool save = true, bool skipInterfaceImplementations = true, string assemblyName = TestData.TestAssembly, string namespaceName = TestData.TestNamespace, string typeName = TestData.TestType) { using TestDirectory tempDir = new(); PortToTripleSlashTestData testData = new( tempDir, testDataDir, assemblyName : assemblyName, namespaceName : namespaceName, typeName : typeName); Configuration c = new() { Direction = Configuration.PortingDirection.ToTripleSlash, CsProj = new FileInfo(testData.ProjectFilePath), Save = save, SkipInterfaceImplementations = skipInterfaceImplementations }; c.IncludedAssemblies.Add(assemblyName); if (!string.IsNullOrEmpty(namespaceName)) { c.IncludedNamespaces.Add(namespaceName); } c.DirsDocsXml.Add(testData.DocsDir); ToTripleSlashPorter.Start(c); Verify(testData); }
public static void Main(string[] args) { Configuration config = Configuration.GetCLIArgumentsForDocsPortingTool(args); switch (config.Direction) { case Configuration.PortingDirection.ToDocs: { ToDocsPorter porter = new(config); porter.Start(); break; } case Configuration.PortingDirection.ToTripleSlash: { ToTripleSlashPorter.Start(config); break; } default: throw new ArgumentOutOfRangeException($"Unrecognized porting direction: {config.Direction}"); } }