public void HintAncestorNodes_nullNode () { SiteMapProviderPoker poker = new SiteMapProviderPoker (); poker.HintAncestorNodes (null, 0); }
public void FindSiteMapNodeFromKey () { SiteMapProviderPoker poker = new SiteMapProviderPoker (); SiteMapNode n = poker.FindSiteMapNodeFromKey ("key"); Assert.AreEqual ("key", n.Key, "A1"); Assert.AreEqual ("key", n.Url, "A2"); }
public void GetCurrentNodeAndHintAncestorNodes () { SiteMapProviderPoker poker = new SiteMapProviderPoker (); SiteMapNode n = poker.GetCurrentNodeAndHintAncestorNodes (5); Assert.IsNull (n, "A1"); }
public void AddNode () { SiteMapProviderPoker poker = new SiteMapProviderPoker (); poker.DoAddNode (new SiteMapNode (poker, "key", "url")); }
public void RemoveNode_nonexistantNode() { SiteMapProviderPoker poker = new SiteMapProviderPoker(); poker.DoRemoveNode(new SiteMapNode(poker, "foo")); }
public void RemoveNode_nonexistantNode () { SiteMapProviderPoker poker = new SiteMapProviderPoker (); poker.DoRemoveNode (new SiteMapNode (poker, "foo")); }
public void Initialize () { SiteMapProviderPoker poker = new SiteMapProviderPoker (); NameValueCollection attrs = new NameValueCollection (); attrs.Add ("securityTrimmingEnabled", "true"); attrs.Add ("enableLocalization", "true"); attrs.Add ("resourceKey", "hithere"); poker.Initialize ("namehere", attrs); Assert.IsFalse (poker.EnableLocalization, "A1"); Assert.IsTrue (poker.SecurityTrimmingEnabled, "A2"); Assert.IsNull (poker.ResourceKey, "A3"); }
public void HintAncestorNodes_nullNode() { SiteMapProviderPoker poker = new SiteMapProviderPoker(); poker.HintAncestorNodes(null, 0); }
public void HintAncestorNodes_negativeUplevel() { SiteMapProviderPoker poker = new SiteMapProviderPoker(); poker.HintAncestorNodes(new SiteMapNode(poker, "key"), -2); }
public void AddNode2_nullParent() { SiteMapProviderPoker poker = new SiteMapProviderPoker(); poker.DoAddNode(new SiteMapNode(poker, "childKey", "childUrl"), null); }
public void FindSiteMapNodeFromKey_nullKey() { SiteMapProviderPoker poker = new SiteMapProviderPoker(); SiteMapNode n = poker.FindSiteMapNodeFromKey(null); }
public void AddNode2_nullNode() { SiteMapProviderPoker poker = new SiteMapProviderPoker(); poker.DoAddNode(null, new SiteMapNode(poker, "parentKey", "parentUrl")); }
public void AddNode() { SiteMapProviderPoker poker = new SiteMapProviderPoker(); poker.DoAddNode(new SiteMapNode(poker, "key", "url")); }
public void AddNode_null() { SiteMapProviderPoker poker = new SiteMapProviderPoker(); poker.DoAddNode(null); }
public void HintAncestorNodes_negativeUplevel2 () { SiteMapProviderPoker poker = new SiteMapProviderPoker (); poker.HintAncestorNodes (new SiteMapNode (poker, "key"), -1); }
public void AddNode2_nullParent () { SiteMapProviderPoker poker = new SiteMapProviderPoker (); poker.DoAddNode (new SiteMapNode (poker, "childKey", "childUrl"), null); }
public void RemoveNode_nullNode () { SiteMapProviderPoker poker = new SiteMapProviderPoker (); poker.DoRemoveNode (null); }
public void AddNode2 () { SiteMapProviderPoker poker = new SiteMapProviderPoker (); poker.DoAddNode (new SiteMapNode (poker, "childKey", "childUrl"), new SiteMapNode (poker, "parentKey", "parentUrl")); }
public void DefaultProperties () { SiteMapProviderPoker poker = new SiteMapProviderPoker (); Assert.IsFalse (poker.EnableLocalization, "A1"); Assert.IsFalse (poker.SecurityTrimmingEnabled, "A2"); Assert.IsNull (poker.ResourceKey, "A3"); }
public void FindSiteMapNode_nullContext () { SiteMapProviderPoker poker = new SiteMapProviderPoker (); SiteMapNode n = poker.FindSiteMapNode ((HttpContext)null); Assert.IsNull (n, "A1"); }
public void AddNode_null () { SiteMapProviderPoker poker = new SiteMapProviderPoker (); poker.DoAddNode (null); }
public void FindSiteMapNodeFromKey_nullKey () { SiteMapProviderPoker poker = new SiteMapProviderPoker (); SiteMapNode n = poker.FindSiteMapNodeFromKey (null); }
public void AddNode2_nullNode () { SiteMapProviderPoker poker = new SiteMapProviderPoker (); poker.DoAddNode (null, new SiteMapNode (poker, "parentKey", "parentUrl")); }
public void RemoveNode_nullNode() { SiteMapProviderPoker poker = new SiteMapProviderPoker(); poker.DoRemoveNode(null); }