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

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

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

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

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

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

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

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

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

            poker.DoRemoveNode(null);
        }