private void AssertValidUri(HeuristicLinkDetector detector, string input, string absoluteUri) { Uri uri; Assert.True(detector.TryCreateUri(input, out uri)); Assert.Equal(absoluteUri, uri.AbsoluteUri); }
private void AssertInvalidUri(HeuristicLinkDetector detector, string input) { Uri uri; Assert.False(detector.TryCreateUri(input, out uri)); }