Пример #1
0
 public void TryParse_should_return_false_for_invalid_input(string input)
 {
     UriParser.TryParse(input, out var _).Should().BeFalse();
 }
Пример #2
0
 public void TryParse_should_return_true_for_valid_input(string uri, UriKind kind)
 {
     UriParser.TryParse(uri, out var res).Should().BeTrue();
     res.Should().BeEquivalentTo(new Uri(uri, kind));
 }