public void TearDown()
 {
     ParserHelper.UnRegisterParserServices();
     this.plugin.FinalizePlugIn();
     this.plugin = null;
     this.files = null;
 }
Exemplo n.º 2
0
 public void TearDown()
 {
     ParserHelper.UnRegisterParserServices();
     this.plugin.FinalizePlugIn();
     this.plugin = null;
     this.files  = null;
 }
 public void SetUp()
 {
     ParserHelper.RegisterParserServices();
     var solutionParser = new SolutionParser(Path.GetFullPath("..\\..\\..\\CR_StyleCop.TestCode.sln"));
     var solution = solutionParser.GetParsedSolution();
     var project = solution.AllProjects.Cast<ProjectElement>().First();
     this.files = project.AllFiles.Cast<SourceFile>();
     this.plugin = new CR_StyleCopPlugIn();
 }
Exemplo n.º 4
0
        public void SetUp()
        {
            ParserHelper.RegisterParserServices();
            var solutionParser = new SolutionParser(Path.GetFullPath("..\\..\\..\\CR_StyleCop.TestCode.sln"));
            var solution       = solutionParser.GetParsedSolution();
            var project        = solution.AllProjects.Cast <ProjectElement>().First();

            this.files  = project.AllFiles.Cast <SourceFile>();
            this.plugin = new CR_StyleCopPlugIn();
        }