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); } } }
private void AnalyzeSolution() { _solutionFile.Analyze(); }