public void NormalFill() { var pattern = new UrlPattern("/users/(name)"); var parameters = new Dictionary<string, string>() { {"name", "mayhem"} }; Assert.AreEqual("/users/mayhem", pattern.Fill(parameters)); }
public void ContinuationFill() { var pattern = new UrlPattern("/users/(name)/..."); var parameters = new Dictionary<string, string>() { {"name", "mayhem"} }; Assert.AreEqual("/users/mayhem/", pattern.Fill(parameters)); }