Inheritance: System.Web.UI.WebControls.LoginView
Example #1
0
        public void LoginView_ViewChanging()
        {
            TestLoginView l = new TestLoginView();

            l.ViewChanging += new EventHandler(event_handler);
            l.DoOnViewChanging(new EventArgs());
            Eventassert("AfterViewChanging");
        }
Example #2
0
        public void LoginView_AnonymousTemplate()
        {
            TestLoginView l = new TestLoginView();

            l.AnonymousTemplate = new LoginViewTemplate();
            l.DoEnsureChildControls();
            Assert.IsNotNull(l.FindControl("kuku"), "AnonymousTemplate");
        }
Example #3
0
        public void LoginView_PreRender()
        {
            TestLoginView l = new TestLoginView();

            l.PreRender += new EventHandler(event_handler);
            l.DoOnPreRender(new EventArgs());
            Eventassert("AfterPreRender");
        }
Example #4
0
        public void LoginView_EventInit()
        {
            TestLoginView l = new TestLoginView();

            l.Init += new EventHandler(event_handler);
            Assert.AreEqual(false, checker, "BeforeInit");
            l.DoOnInit(new EventArgs());
            Assert.AreEqual(true, checker, "AfterInit");
        }
Example #5
0
        public void LoginView_LoggedInTemplate()
        {
            TestLoginView l        = new TestLoginView();
            ITemplate     template = new LoginViewTemplate();

            l.LoggedInTemplate = template;
            l.DoEnsureChildControls();
            Assert.AreEqual(template, l.LoggedInTemplate, "LoggedInTemplate");
        }
Example #6
0
        public void LoginView_State()
        {
            // IT IS NOTHING SAVED IN  STATE OBJECT IN NON PAGE CONTEXT
            TestLoginView l = new TestLoginView();

            l.AnonymousTemplate = new LoginViewTemplate();
            l.DoEnsureChildControls();
            object state = l.DoSaveControlState();

            Assert.AreEqual(null, state, "StateObgect");
        }
Example #7
0
        public void LoginView_Controls()
        {
            TestLoginView l = new TestLoginView();

            l.AnonymousTemplate = new LoginViewTemplate();
            l.DoEnsureChildControls();
            ControlCollection col = l.Controls as ControlCollection;

            Assert.IsNotNull(col, "ControlCollection");
            Assert.AreEqual(1, col.Count, "Controls");
        }
Example #8
0
		public void LoginView_PreRender ()
		{
			TestLoginView l = new TestLoginView ();
			l.PreRender += new EventHandler (event_handler);
			l.DoOnPreRender (new EventArgs ());
			Eventassert ("AfterPreRender");
		}
Example #9
0
		public void LoginView_ViewChanging ()
		{
			TestLoginView l = new TestLoginView ();
			l.ViewChanging += new EventHandler (event_handler);
			l.DoOnViewChanging (new EventArgs ());
			Eventassert ("AfterViewChanging");
		}
Example #10
0
		public void LoginView_EventInit ()
		{
			TestLoginView l = new TestLoginView ();
			l.Init += new EventHandler (event_handler);
			Assert.AreEqual (false, checker, "BeforeInit");
			l.DoOnInit (new EventArgs ());
			Assert.AreEqual (true, checker, "AfterInit");
		}
Example #11
0
		public void LoginView_State ()
		{
			// IT IS NOTHING SAVED IN  STATE OBJECT IN NON PAGE CONTEXT
			TestLoginView l = new TestLoginView ();
			l.AnonymousTemplate = new LoginViewTemplate ();
			l.DoEnsureChildControls ();
			object state = l.DoSaveControlState ();
			Assert.AreEqual (null, state, "StateObgect");
		}
Example #12
0
		public void LoginView_LoggedInTemplate ()
		{
			TestLoginView l = new TestLoginView ();
			ITemplate template = new LoginViewTemplate ();
			l.LoggedInTemplate = template;
			l.DoEnsureChildControls ();
			Assert.AreEqual (template, l.LoggedInTemplate, "LoggedInTemplate");
		}
Example #13
0
		public void LoginView_AnonymousTemplate ()
		{
			TestLoginView l = new TestLoginView ();
			l.AnonymousTemplate = new LoginViewTemplate ();
			l.DoEnsureChildControls ();
			Assert.IsNotNull (l.FindControl ("kuku"), "AnonymousTemplate");
		}
Example #14
0
		public void LoginView_Controls ()
		{
			TestLoginView l = new TestLoginView ();
			l.AnonymousTemplate = new LoginViewTemplate ();
			l.DoEnsureChildControls ();
			ControlCollection col = l.Controls as ControlCollection;
			Assert.IsNotNull (col, "ControlCollection");
			Assert.AreEqual (1, col.Count, "Controls");
		}