public void ThrowsForLegacyFrameworkProjectWithPackageReference() { // Given, When, Then AnalyzerManager manager = new AnalyzerManager(); ProjectAnalyzer analyzer = manager.GetProject(GetProjectPath(@"LegacyFrameworkProjectWithPackageReference\LegacyFrameworkProjectWithPackageReference.csproj")); Should.Throw <Exception>(() => analyzer.Load()); }
public void LoadsProject(string projectFile) { // Given StringBuilder log = new StringBuilder(); ProjectAnalyzer analyzer = GetProjectAnalyzer(projectFile, log); // When Project project = analyzer.Load(); // Then project.ShouldNotBeNull(log.ToString()); }
public void LoadsProject(string projectFile) { // Given StringWriter log = new StringWriter(); ProjectAnalyzer analyzer = GetProjectAnalyzer(projectFile, log); // When DeleteProjectDirectory(projectFile, "obj"); DeleteProjectDirectory(projectFile, "bin"); Project project = analyzer.Load(); // Then project.ShouldNotBeNull(log.ToString()); }