Пример #1
0
        public void TraverseSystemDotMore()
        {
            StringBuilder testOuput = new StringBuilder();
            Console.SetOut(new StringWriter(testOuput));

            if (!File.Exists("system.exe"))
              File.Move("system.more", "system.exe");
            Process.Start("system").WaitForExit();
            var compiler = new MSBuildCompiler();
            var assembly = compiler.CompileProject(@"System\System.More.csproj");
            var visitor = new MySourceTraverser();
            visitor.Visit(assembly.Compilation);
        }
Пример #2
0
        public void TraverseSystemDotMore()
        {
            StringBuilder testOuput = new StringBuilder();

            Console.SetOut(new StringWriter(testOuput));

            if (!File.Exists("system.exe"))
            {
                File.Move("system.more", "system.exe");
            }
            Process.Start("system").WaitForExit();
            var compiler = new MSBuildCompiler();
            var assembly = compiler.CompileProject(@"System\System.More.csproj");
            var visitor  = new MySourceTraverser();

            visitor.Visit(assembly.Compilation);
        }