public void ExpandVarArgsInvalidAmountVariables() { UriTemplate template = new UriTemplate("http://example.com/hotels/{hotel}/bookings/{booking}"); template.Expand("1", "42", 100); }
public void MatchesQueryVariables() { UriTemplate template = new UriTemplate("/search?q={query}"); Assert.IsTrue(template.Matches("/search?q=foo")); }