Exemplo n.º 1
0
        public void Initialize()
        {
            path = Environment.CurrentDirectory + "\\..\\..\\..\\TemplateGeneratorTest.cs";
            ar   = new AsyncReader();
            code = ar.Read(path).Result;

            generator = new TemplateGenerator();

            root = CSharpSyntaxTree.ParseText(code).GetRoot();
        }
Exemplo n.º 2
0
        public void Initialize()
        {
            path = Environment.CurrentDirectory + "\\..\\..\\..\\CodeAnalyzerTest.cs";
            ar   = new AsyncReader();
            string sourceCode = ar.Read(path).Result;

            analyzer = new CodeAnalyzer();
            classes  = analyzer.Parse(sourceCode);

            root = CSharpSyntaxTree.ParseText(sourceCode).GetRoot();
        }