Skip to content

Commit 8576399

Browse files
committed
Add more href cases.
1 parent f9ee951 commit 8576399

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

converter/tests/ResourceResolverTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ public class ResourceResolverTests
88
[InlineData("./A/App/A.html", "en", "/app/a/", "App A")]
99
[InlineData("./A/App/B.html", "de", "/app/b/de/", "App B")]
1010
[InlineData("./A/App/B_Script.html", "de", "/build/b-scripts/de/", "B Scripts (Moved from App)")]
11+
[InlineData("./A/App/B_Script.html#section", "de", "/build/b-scripts/de/#section", "B Scripts (Moved from App)")]
1112
[InlineData("/link.aspx?a=b#h", "de", "/link.aspx?a=b#h", null)]
1213
[InlineData("http://localhost/link.aspx?a=b", "de", "http://localhost/link.aspx?a=b", null)]
1314
[InlineData("mailto:a@b.lan", "de", "mailto:a@b.lan", null)]
15+
[InlineData("#section", "de", "#section", null)]
1416
public void HrefShouldResolveCorrectly(string href, string language, string expectedUrl, string? expectedTitle)
1517
{
1618
var resolver = CreateResolver("app", false, out var args);

0 commit comments

Comments
 (0)