Example #1
0
        public void ConflictsManager_GetCurrentConflicts_MissingBaselineFile()
        {
            // Arrange
            this.SetSolutionBinding(SonarLintMode.LegacyConnected);
            this.SetValidProjects();

            // Act + Assert
            testSubject.GetCurrentConflicts().Should().BeEmpty("Not expecting any conflicts since the solution baseline is missing");
            this.outputWindowPane.AssertOutputStrings(1);

            var expectedBaselineLocation = configProvider.GetConfiguration()
                                           .BuildPathUnderConfigDirectory(ProjectToLanguageMapper
                                                                          .GetLanguageForProject(projectHelper.FilteredProjects.First()).FileSuffixAndExtension);

            outputWindowPane.AssertOutputStrings(1);
            this.outputWindowPane.AssertPartialOutputStrings(expectedBaselineLocation);
        }