コード例 #1
0
        public void TestVcxProjectFoundInCorrectFolder()
        {
            string testDataDirectory = TestData.TestDataDirectory;
            string solutionFilename  = Path.GetFullPath(Path.Combine(testDataDirectory, @"..\DsmSuite.sln"));

            AnalyzerSettings analyzerSettings = AnalyzerSettings.CreateDefault();
            SolutionFile     solutionFile     = new SolutionFile(solutionFilename, analyzerSettings, null);

            solutionFile.Analyze();

            Assert.IsTrue(solutionFile.Projects.Count > 0);
            foreach (ProjectFile projectFile in solutionFile.Projects)
            {
                if (projectFile.ProjectName == "DsmSuite.Analyzer.VisualStudio.Test.Data")
                {
                    Assert.AreEqual("Analyzers.VisualStudioAnalyzer", projectFile.SolutionFolder);
                }
            }
        }
コード例 #2
0
 private void AnalyzeSolution()
 {
     _solutionFile.Analyze();
 }