Beispiel #1
0
        public void ThrowsForLegacyFrameworkProjectWithPackageReference()
        {
            // Given, When, Then
            AnalyzerManager manager  = new AnalyzerManager();
            ProjectAnalyzer analyzer = manager.GetProject(GetProjectPath(@"LegacyFrameworkProjectWithPackageReference\LegacyFrameworkProjectWithPackageReference.csproj"));

            Should.Throw <Exception>(() => analyzer.Load());
        }
Beispiel #2
0
        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());
        }
Beispiel #3
0
        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());
        }