public void MasterPageIsBuiltUpOnInit()
        {
            MockWebClientApplication application = new MockWebClientApplication();
            MockHttpContext mockContext = new MockHttpContext();
            mockContext.Request = new HttpRequest("page.aspx", "http://application/page.aspx", null);
            mockContext.ApplicationInstance = application;
            application.SetTestCurrentContext(mockContext);
            MockMasterPage master = new MockMasterPage();

            Assert.IsFalse(master.OnBuiltUpCalled);

            master.FireOnInit();

            Assert.IsTrue(master.OnBuiltUpCalled);
        }
        public void MasterPageIsBuiltUpOnInit()
        {
            MockWebClientApplication application = new MockWebClientApplication();
            MockHttpContext          mockContext = new MockHttpContext();

            mockContext.Request             = new HttpRequest("page.aspx", "http://application/page.aspx", null);
            mockContext.ApplicationInstance = application;
            application.SetTestCurrentContext(mockContext);
            MockMasterPage master = new MockMasterPage();

            Assert.IsFalse(master.OnBuiltUpCalled);

            master.FireOnInit();

            Assert.IsTrue(master.OnBuiltUpCalled);
        }