Exemple #1
0
        private static void OutputTheme(Options options)
        {
            StageStopwatch.Restart();
            Report.NewStatus("Outputting theme files... ");
            var themeParts     = DocumentationManager.RequiredThemeParts(options.SourceFilePaths.Select(Path.GetExtension));
            var themeOutputter = new AssetOutputter(themeParts);

            themeOutputter.Output(options.OverwriteExisting, options.OutputDirectory, options.ProjectFilePath, options.ThemeName, options.CopyPaths, options.CopyAndParsePaths);

            SaveTiming("theme-output", StageStopwatch.ElapsedMilliseconds);
            Report.ContinueStatus("Done");
        }
Exemple #2
0
        public void SingleDefinition(string[] parts, string[] extensions)
        {
            DocumentationManager.RegisterDocumentationDefinition("test", ".f90", new TestDocDef());
            var actualParts = DocumentationManager.RequiredThemeParts(extensions).ToArray();

            DocumentationManager.Reset();
            var errorString = $"Expected: {parts.DelimiteredConcat(", ", " and ")}\nFound:    {actualParts.DelimiteredConcat(", ", " and ")}";

            Assert.AreEqual(parts.Length, actualParts.Length, errorString);
            foreach (var actual in actualParts)
            {
                Assert.IsTrue(parts.Contains(actual), errorString);
            }
        }