public void a_url_not_matching_a_literal_query_string_will_not_match() { var table = new OpenRasta.UriTemplate("/test?query=literal"); OpenRasta.UriTemplateMatch match = table.Match(new Uri("http://localhost"), new Uri("http://localhost/test?query=notliteral")); match.ShouldBeNull(); }
public void there_is_no_match_when_a_segment_doesnt_match() { GivenAMatching("/weather/{state}/{city}", "http://localhost/temperature/Washington/Seattle"); ThenTheMatch.ShouldBeNull(); }