public async Task GetConfig_NoSupportedActiveRules_ReturnsNull()
        {
            // Arrange
            var builder = new TestEnvironmentBuilder(validQualityProfile, Language.VBNET)
            {
                ActiveRulesResponse = new List <SonarQubeRule> {
                    ActiveRuleWithUnsupportedSeverity
                },
                InactiveRulesResponse = validRules,
                PropertiesResponse    = anyProperties
            };
            var testSubject = builder.CreateTestSubject();

            // Act
            var result = await testSubject.GetConfigurationAsync(validQualityProfile, Language.VBNET, builder.BindingConfiguration, CancellationToken.None)
                         .ConfigureAwait(false);

            // Assert
            result.Should().BeNull();

            builder.Logger.AssertOutputStrings(1);
            var expectedOutput = string.Format(Strings.SubTextPaddingFormat,
                                               string.Format(Strings.NoSonarAnalyzerActiveRulesForQualityProfile, validQualityProfile.Name, Language.VBNET.Name));

            builder.Logger.AssertOutputStrings(expectedOutput);

            builder.AssertRuleSetGeneratorNotCalled();
            builder.AssertNuGetGeneratorNotCalled();
            builder.AssertNuGetBindingWasNotCalled();
        }
        public async Task GetConfig_NuGetBindingOperationFails_ReturnsNull()
        {
            var builder = new TestEnvironmentBuilder(validQualityProfile, Language.VBNET)
            {
                ActiveRulesResponse           = validRules,
                InactiveRulesResponse         = validRules,
                PropertiesResponse            = anyProperties,
                NuGetGeneratorResponse        = validNugetPackages,
                NuGetBindingOperationResponse = false
            };

            var testSubject = builder.CreateTestSubject();

            var result = await testSubject.GetConfigurationAsync(validQualityProfile, Language.VBNET, builder.BindingConfiguration, CancellationToken.None)
                         .ConfigureAwait(false);

            result.Should().BeNull();

            builder.AssertNuGetGeneratorWasCalled();
            builder.AssertNuGetBindingOpWasCalled();

            builder.AssertRuleSetGeneratorNotCalled();
        }