Esempio n. 1
0
		public void HintAncestorNodes_nullNode ()
		{
			SiteMapProviderPoker poker = new SiteMapProviderPoker ();
			poker.HintAncestorNodes (null, 0);
		}
Esempio n. 2
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");
		}
Esempio n. 3
0
		public void GetCurrentNodeAndHintAncestorNodes ()
		{
			SiteMapProviderPoker poker = new SiteMapProviderPoker ();
			SiteMapNode n = poker.GetCurrentNodeAndHintAncestorNodes (5);
			Assert.IsNull (n, "A1");
		}
Esempio n. 4
0
		public void AddNode ()
		{
			SiteMapProviderPoker poker = new SiteMapProviderPoker ();
			poker.DoAddNode (new SiteMapNode (poker, "key", "url"));
		}
Esempio n. 5
0
        public void RemoveNode_nonexistantNode()
        {
            SiteMapProviderPoker poker = new SiteMapProviderPoker();

            poker.DoRemoveNode(new SiteMapNode(poker, "foo"));
        }
Esempio n. 6
0
		public void RemoveNode_nonexistantNode ()
		{
			SiteMapProviderPoker poker = new SiteMapProviderPoker ();
			poker.DoRemoveNode (new SiteMapNode (poker, "foo"));
		}
Esempio n. 7
0
		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");
		}
Esempio n. 8
0
        public void HintAncestorNodes_nullNode()
        {
            SiteMapProviderPoker poker = new SiteMapProviderPoker();

            poker.HintAncestorNodes(null, 0);
        }
Esempio n. 9
0
        public void HintAncestorNodes_negativeUplevel()
        {
            SiteMapProviderPoker poker = new SiteMapProviderPoker();

            poker.HintAncestorNodes(new SiteMapNode(poker, "key"), -2);
        }
Esempio n. 10
0
        public void AddNode2_nullParent()
        {
            SiteMapProviderPoker poker = new SiteMapProviderPoker();

            poker.DoAddNode(new SiteMapNode(poker, "childKey", "childUrl"), null);
        }
Esempio n. 11
0
 public void FindSiteMapNodeFromKey_nullKey()
 {
     SiteMapProviderPoker poker = new SiteMapProviderPoker();
     SiteMapNode          n     = poker.FindSiteMapNodeFromKey(null);
 }
Esempio n. 12
0
        public void AddNode2_nullNode()
        {
            SiteMapProviderPoker poker = new SiteMapProviderPoker();

            poker.DoAddNode(null, new SiteMapNode(poker, "parentKey", "parentUrl"));
        }
Esempio n. 13
0
        public void AddNode()
        {
            SiteMapProviderPoker poker = new SiteMapProviderPoker();

            poker.DoAddNode(new SiteMapNode(poker, "key", "url"));
        }
Esempio n. 14
0
        public void AddNode_null()
        {
            SiteMapProviderPoker poker = new SiteMapProviderPoker();

            poker.DoAddNode(null);
        }
Esempio n. 15
0
		public void HintAncestorNodes_negativeUplevel2 ()
		{
			SiteMapProviderPoker poker = new SiteMapProviderPoker ();
			poker.HintAncestorNodes (new SiteMapNode (poker, "key"), -1);
		}
Esempio n. 16
0
		public void AddNode2_nullParent ()
		{
			SiteMapProviderPoker poker = new SiteMapProviderPoker ();
			poker.DoAddNode (new SiteMapNode (poker, "childKey", "childUrl"), null);
		}
Esempio n. 17
0
		public void RemoveNode_nullNode ()
		{
			SiteMapProviderPoker poker = new SiteMapProviderPoker ();
			poker.DoRemoveNode (null);
		}
Esempio n. 18
0
		public void AddNode2 ()
		{
			SiteMapProviderPoker poker = new SiteMapProviderPoker ();
			poker.DoAddNode (new SiteMapNode (poker, "childKey", "childUrl"),
					 new SiteMapNode (poker, "parentKey", "parentUrl"));
		}
Esempio n. 19
0
		public void DefaultProperties ()
		{
			SiteMapProviderPoker poker = new SiteMapProviderPoker ();

			Assert.IsFalse (poker.EnableLocalization, "A1");
			Assert.IsFalse (poker.SecurityTrimmingEnabled, "A2");
			Assert.IsNull (poker.ResourceKey, "A3");
		}
Esempio n. 20
0
		public void FindSiteMapNode_nullContext ()
		{
			SiteMapProviderPoker poker = new SiteMapProviderPoker ();
			SiteMapNode n = poker.FindSiteMapNode ((HttpContext)null);
			Assert.IsNull (n, "A1");
		}
Esempio n. 21
0
		public void AddNode_null ()
		{
			SiteMapProviderPoker poker = new SiteMapProviderPoker ();
			poker.DoAddNode (null);
		}
Esempio n. 22
0
		public void FindSiteMapNodeFromKey_nullKey ()
		{
			SiteMapProviderPoker poker = new SiteMapProviderPoker ();
			SiteMapNode n = poker.FindSiteMapNodeFromKey (null);
		}
Esempio n. 23
0
		public void AddNode2_nullNode ()
		{
			SiteMapProviderPoker poker = new SiteMapProviderPoker ();
			poker.DoAddNode (null, new SiteMapNode (poker, "parentKey", "parentUrl"));
		}
Esempio n. 24
0
        public void RemoveNode_nullNode()
        {
            SiteMapProviderPoker poker = new SiteMapProviderPoker();

            poker.DoRemoveNode(null);
        }