public void Navigate(string path) { if (TryNavigate(path) == false) { throw new KeyNotFoundException("There is no page that matches the path '" + path + "'"); } }
public void PageStackDefault() { PageStack stack = new PageStack(); stack.RegisterDefaultRoute("home", () => new Page()); Assert.IsNull(stack.CurrentPage); stack.Navigate(""); Assert.IsNotNull(stack.CurrentPage); }