public void ParseTest() { string[] testProjectFiles = new string[] { Path.Combine(Path.GetTempPath(), "TestProject.csproj") }; MSBuildSolutionParser solutionParser = new MSBuildSolutionParser(); ReadOnlyCollection<string> projectFiles = solutionParser.Parse(_testSolutionFile); Assert.AreEqual(testProjectFiles.Length, projectFiles.Count, "Unexpected number of project files."); foreach (string testProjectFile in testProjectFiles) { Assert.IsTrue( projectFiles.Contains(testProjectFile), "Test project file {0} was not included in the project file list.", testProjectFile); } }
public void ParseNullTest() { MSBuildSolutionParser solutionParser = new MSBuildSolutionParser(); solutionParser.Parse(null); }