public void PageIsBuiltUpOnPreInit()
        {
            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);
            MockPage page = new MockPage();

            Assert.IsFalse(page.OnBuiltUpCalled);

            page.FireOnPreInit();

            Assert.IsTrue(page.OnBuiltUpCalled);
        }
        public void PageIsBuiltUpOnPreInit()
        {
            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);
            MockPage page = new MockPage();

            Assert.IsFalse(page.OnBuiltUpCalled);

            page.FireOnPreInit();

            Assert.IsTrue(page.OnBuiltUpCalled);
        }