static public void AddNode2_delegate()
        {
            StaticPoker poker = new StaticPoker();

            poker.DoAddNode(new SiteMapNode(poker, "childKey", "childUrl"),
                            new SiteMapNode(poker, "parentKey", "parentUrl"));
        }
        static public void IsAccessibleFrom1_delegate(Page page)
        {
            StaticPoker p = new StaticPoker();
            SiteMapNode n = new SiteMapNode(p, "childKey", "http://childUrl/");

            n.Roles = null;
            bool b = p.IsAccessibleToUser(HttpContext.Current, n);

            Assert.IsTrue(b, "#1");
        }
        static public void AddNode_delegate2()
        {
            StaticPoker poker = new StaticPoker();

            SiteMapNode n1 = new SiteMapNode(poker, "key1", "");
            SiteMapNode n2 = new SiteMapNode(poker, "key2", "");

            poker.DoAddNode(n1, poker.RootNode);
            poker.DoAddNode(n2, poker.RootNode);
            Assert.AreEqual(2, poker.GetChildNodes(poker.RootNode).Count, "A1");
        }
        static public void AddNode_delegate()
        {
            StaticPoker poker = new StaticPoker();

            SiteMapNode n = new SiteMapNode(poker, "key", "url");

            poker.DoAddNode(n, poker.RootNode);
            Assert.AreEqual(1, poker.GetChildNodes(poker.RootNode).Count, "A1");

            poker.DoRemoveNode(n);
            Assert.AreEqual(0, poker.GetChildNodes(poker.RootNode).Count, "A2");
        }
		static public void AddNode_delegate ()
		{
			StaticPoker poker = new StaticPoker();

			SiteMapNode n = new SiteMapNode (poker, "key", "url");

			poker.DoAddNode (n,poker.RootNode);
			Assert.AreEqual (1, poker.GetChildNodes (poker.RootNode).Count, "A1");

			poker.DoRemoveNode(n);
			Assert.AreEqual (0, poker.GetChildNodes (poker.RootNode).Count, "A2");
		}
		public void AddNode_null ()
		{
			StaticPoker poker = new StaticPoker ();
			poker.DoAddNode (null);
		}
		static public void IsAccessibleFrom1_delegate (Page page)
		{
			StaticPoker p = new StaticPoker ();
			SiteMapNode n = new SiteMapNode (p, "childKey", "http://childUrl/");
			n.Roles = null;
			bool b = p.IsAccessibleToUser (HttpContext.Current, n);
			Assert.IsTrue (b, "#1");
		}
		static public void AddNode2_delegate ()
		{
			StaticPoker poker = new StaticPoker ();
			poker.DoAddNode (new SiteMapNode (poker, "childKey", "childUrl"),
					 new SiteMapNode (poker, "parentKey", "parentUrl"));
		}
		public void AddNode2_nullNode ()
		{
			StaticPoker poker = new StaticPoker ();
			poker.DoAddNode (null, new SiteMapNode (poker, "parentKey", "parentUrl"));
		}
		static public void AddNode_delegate2 () {
			StaticPoker poker = new StaticPoker ();

			SiteMapNode n1 = new SiteMapNode (poker, "key1", "");
			SiteMapNode n2 = new SiteMapNode (poker, "key2", "");

			poker.DoAddNode (n1, poker.RootNode);
			poker.DoAddNode (n2, poker.RootNode);
			Assert.AreEqual (2, poker.GetChildNodes (poker.RootNode).Count, "A1");
		}
        public void AddNode_null()
        {
            StaticPoker poker = new StaticPoker();

            poker.DoAddNode(null);
        }
        public void AddNode2_nullNode()
        {
            StaticPoker poker = new StaticPoker();

            poker.DoAddNode(null, new SiteMapNode(poker, "parentKey", "parentUrl"));
        }