Skip to content

Instantly share code, notes, and snippets.

@daydos
Last active September 16, 2019 07:16
Show Gist options
  • Save daydos/9eb2155a086d7cd752d9091b0f972837 to your computer and use it in GitHub Desktop.
Save daydos/9eb2155a086d7cd752d9091b0f972837 to your computer and use it in GitHub Desktop.
[TestCase("https://www.example.com/#/dashboard", "https://www.example.com/#/dashboard")]
[TestCase("https://www.example.com/#/reports?id=1&page=1", "https://www.example.com/#/reports?id=1&page=1")]
public void Should_parse_query_parameters_from_URLs_with_hash_based_routing(string uri, string expected)
{
var uriManager = new UriManager(uri);
var actual = uriManager.Uri.AbsoluteUri;
actual.Should().Be(expected);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment