Add test covering failure to resolve relative URLs

This commit is contained in:
Dean Herbert 2021-06-01 13:50:04 +09:00
parent 2d530256f5
commit 1a05a5d2f0
1 changed files with 9 additions and 0 deletions

View File

@ -489,5 +489,14 @@ public void TestEmoji()
Assert.AreEqual(result.Links[2].Url, "\uD83D\uDE00");
Assert.AreEqual(result.Links[3].Url, "\uD83D\uDE20");
}
[Test]
public void TestRelativeExternalLinks()
{
LinkDetails result = MessageFormatter.GetLinkDetails("/relative");
Assert.AreEqual(LinkAction.External, result.Action);
Assert.AreEqual("/relative", result.Argument);
}
}
}