Beispiel #1
0
 public void Setup()
 {
     // Mock file system
     this.ExtensionDirectory = TestsUtilities.EnsureExtensionsDeployed();
     this.FileSystem         = new MockFileSystem(new Dictionary <string, MockFileData>
     {
         { "Project.csproj", new MockFileData("<Root></Root>") },
         { "Config/AllValues.json", new MockFileData(ConfigFiles.AllValues) },
         { "Config/WithIndex.json", new MockFileData(ConfigFiles.WithIndex) },
         { "Config/NoPdf.json", new MockFileData(ConfigFiles.NoPdf) },
         { "Config/NoHtml.json", new MockFileData(ConfigFiles.NoHtml) },
         { "Config/ErrorInHtml.json", new MockFileData(ConfigFiles.ErrorInHtml) },
         { "Config/ErrorInHtmlNoPdf.json", new MockFileData(ConfigFiles.ErrorInHtmlNoPdf) },
         { "Config/ErrorInIndexHtml.json", new MockFileData(ConfigFiles.ErrorInIndexHtml) },
         { "Config/MissingMembersInPage.json", new MockFileData(ConfigFiles.MissingMembersInPage) },
         { "Template/Template.txt", new MockFileData(TemplateFiles.Simple) },
         { "Template/Template-pdf.txt", new MockFileData(TemplateFiles.Simple_pdf) },
         { "Template/Malformated.txt", new MockFileData(TemplateFiles.Malformated) },
         { "Template/IndexTemplate.txt", new MockFileData(TemplateFiles.SimpleIndex) },
         { "Page/Content.md", new MockFileData(PageFiles.Content) },
         { "Page/Snippet.md", new MockFileData(PageFiles.Snippet) },
         { "Page/Table.md", new MockFileData(PageFiles.Table) },
         { "Page/MissingMembers.md", new MockFileData(PageFiles.MissingMembers) },
         { "Source/Foo.cs", new MockFileData(SourceCSharpFiles.Foo) },
         { "Expected/Simple.txt", new MockFileData(ExpectedFullGenerationFiles.Simple) },
         { "Expected/Simple-pdf.txt", new MockFileData(ExpectedFullGenerationFiles.Simple_pdf) },
         { "Expected/Image.jpg", new MockFileData(string.Empty) },
         { "Expected/SimpleIndex.txt", new MockFileData(ExpectedFullGenerationFiles.SimpleIndex) }
     });
     this.FileSystem.Directory.CreateDirectory(this.ExtensionDirectory.FullName);
 }
Beispiel #2
0
 public void Setup()
 {
     // Initialize extractor
     this.SnippetExtractorFactory = new SnippetExtractorFactory(TestsUtilities.EnsureExtensionsDeployed());
 }