@@ -65,6 +65,12 @@ public void GeneratesHtml() =>
6565
6666 [ Fact ]
6767 public void HasNoErrors ( ) => Collector . Diagnostics . Should ( ) . HaveCount ( 0 ) ;
68+
69+ [ Fact ]
70+ public void EmitsCrossLink ( )
71+ {
72+ Collector . CrossLinks . Should ( ) . HaveCount ( 0 ) ;
73+ }
6874}
6975
7076public class InsertPageTitleTests ( ITestOutputHelper output ) : LinkTestBase ( output ,
@@ -82,6 +88,12 @@ public void GeneratesHtml() =>
8288
8389 [ Fact ]
8490 public void HasNoErrors ( ) => Collector . Diagnostics . Should ( ) . HaveCount ( 0 ) ;
91+
92+ [ Fact ]
93+ public void EmitsCrossLink ( )
94+ {
95+ Collector . CrossLinks . Should ( ) . HaveCount ( 0 ) ;
96+ }
8597}
8698
8799public class LinkReferenceTest ( ITestOutputHelper output ) : LinkTestBase ( output ,
@@ -101,6 +113,12 @@ public void GeneratesHtml() =>
101113
102114 [ Fact ]
103115 public void HasNoErrors ( ) => Collector . Diagnostics . Should ( ) . HaveCount ( 0 ) ;
116+
117+ [ Fact ]
118+ public void EmitsCrossLink ( )
119+ {
120+ Collector . CrossLinks . Should ( ) . HaveCount ( 0 ) ;
121+ }
104122}
105123
106124public class CrossLinkReferenceTest ( ITestOutputHelper output ) : LinkTestBase ( output ,
@@ -126,40 +144,14 @@ public void GeneratesHtml() =>
126144 public void EmitsCrossLink ( )
127145 {
128146 Collector . CrossLinks . Should ( ) . HaveCount ( 1 ) ;
129- Collector . CrossLinks . Should ( ) . ContainKey ( "kibana://index.md" ) ;
147+ Collector . CrossLinks . Should ( ) . Contain ( "kibana://index.md" ) ;
130148 }
131149}
132150
133151public class CrossLinkTest ( ITestOutputHelper output ) : LinkTestBase ( output ,
134152 """
135- [test](kibana://index.md)
136- """
137- )
138- {
139- [ Fact ]
140- public void GeneratesHtml ( ) =>
141- // language=html
142- Html . Should ( ) . Contain (
143- // TODO: The link is not rendered correctly yet, will be fixed in a follow-up
144- """<p><a href="kibana://index.html">test</a></p>"""
145- ) ;
146153
147- [ Fact ]
148- public void HasNoErrors ( ) => Collector . Diagnostics . Should ( ) . HaveCount ( 0 ) ;
149-
150- [ Fact ]
151- public void EmitsCrossLink ( )
152- {
153- Collector . CrossLinks . Should ( ) . HaveCount ( 1 ) ;
154- Collector . CrossLinks . Should ( ) . ContainKey ( "kibana://index.md" ) ;
155- }
156- }
157-
158- public class DuplicateCrossLinkTest ( ITestOutputHelper output ) : LinkTestBase ( output ,
159- """
160- [a](kibana://index.md)
161- [b](kibana://index.md)
162- [c](elasticsearch://index.md)
154+ Go to [test](kibana://index.md)
163155 """
164156)
165157{
@@ -168,11 +160,7 @@ public void GeneratesHtml() =>
168160 // language=html
169161 Html . Should ( ) . Contain (
170162 // TODO: The link is not rendered correctly yet, will be fixed in a follow-up
171- """
172- <p><a href="kibana://index.html">a</a><br />
173- <a href="kibana://index.html">b</a><br />
174- <a href="elasticsearch://index.html">c</a></p>
175- """
163+ """<p>Go to <a href="kibana://index.html">test</a></p>"""
176164 ) ;
177165
178166 [ Fact ]
@@ -181,9 +169,7 @@ public void GeneratesHtml() =>
181169 [ Fact ]
182170 public void EmitsCrossLink ( )
183171 {
184- Collector . CrossLinks . Should ( ) . HaveCount ( 2 ) ;
185- Collector . CrossLinks . Should ( ) . ContainKey ( "kibana://index.md" ) ;
186- Collector . CrossLinks . Should ( ) . ContainKey ( "elasticsearch://index.md" ) ;
172+ Collector . CrossLinks . Should ( ) . HaveCount ( 1 ) ;
173+ Collector . CrossLinks . Should ( ) . Contain ( "kibana://index.md" ) ;
187174 }
188175}
189-
0 commit comments