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