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(); }); }); }