public void DeepLinkingNoTargetNameTest() { MyHyperlinkTarget target = new MyHyperlinkTarget(); MyHyperlinkButton hlb = new MyHyperlinkButton(); hlb.NavigateUri = new Uri("DeepLink", UriKind.Relative); Canvas root = new Canvas(); root.Children.Add(target); root.Children.Add(hlb); CreateAsyncTest(root, () => { hlb.Clickify(); Assert.IsTrue(target.Navigated, "Deep linked target navigation"); }); }
public void DeepLinkingNoTargetNameTest () { MyHyperlinkTarget target = new MyHyperlinkTarget (); MyHyperlinkButton hlb = new MyHyperlinkButton (); hlb.NavigateUri = new Uri ("DeepLink", UriKind.Relative); Canvas root = new Canvas (); root.Children.Add (target); root.Children.Add (hlb); CreateAsyncTest (root, () => { hlb.Clickify (); Assert.IsTrue (target.Navigated, "Deep linked target navigation"); }); }