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(); }