public void Should_Read_Line_Correct() { // Given var fixture = new DocFxProviderFixture("entry-with-line.json", @"/"); // When var issues = fixture.ReadIssues().ToList(); // Then issues.Count.ShouldBe(1); CheckIssue( issues[0], @"bar.md", 45, "Build Document.LinkPhaseHandler.ConceptualDocumentProcessor.Save", null, 0, "Invalid file link:(~/foo.md)."); }
public void Should_Read_Issue_Correct(string docRootPath, string docRelativePath) { // Given var fixture = new DocFxProviderFixture("docfx.json", docRootPath); // When var issues = fixture.ReadIssues().ToList(); // Then issues.Count.ShouldBe(1); CheckIssue( issues[0], docRelativePath + @"index.md", null, "Build Document.LinkPhaseHandler.Apply Templates", null, 0, "Invalid cross reference \"[Foo](xref:foo)\"."); }