コード例 #1
0
        public void OnCodeGenerationCompleteControlBuilderTest()
        {
            Utils.RunInSeparateAppDomain(() => {
                var vpath    = "/WebSite1/index.ascq";
                var contents = "<%@ Page Language=C# %>";
                Utils.SetupVirtualPathInAppDomain(vpath, contents);
                new WebPageSurrogateControlBuilderTest().FixUpClassTest(type => {
                    var ccu = new CodeCompileUnit();
                    ccu.Namespaces.Add(new CodeNamespace());

                    var builder = new MockUserControlBuilder()
                    {
                        VPath = vpath
                    };
                    builder.ProcessGeneratedCode(ccu, null, type, null, null);
                    builder.CallOnCodeGenerationComplete();
                });
            });
        }
コード例 #2
0
        public void OnCodeGenerationCompleteControlBuilderTest() {
            Utils.RunInSeparateAppDomain(() => {
                var vpath = "/WebSite1/index.ascq";
                var contents = "<%@ Page Language=C# %>";
                Utils.SetupVirtualPathInAppDomain(vpath, contents);
                new WebPageSurrogateControlBuilderTest().FixUpClassTest(type => {
                    var ccu = new CodeCompileUnit();
                    ccu.Namespaces.Add(new CodeNamespace());

                    var builder = new MockUserControlBuilder() { VPath = vpath };
                    builder.ProcessGeneratedCode(ccu, null, type, null, null);
                    builder.CallOnCodeGenerationComplete();
                });
            });
        }