public void GetUtilityDescriptor_Should_Contain_NotConfigurable_CustomTag() { var result = DiagnosticDescriptorBuilder.GetUtilityDescriptor("Foo", ""); #if DEBUG result.CustomTags.Should().NotContain(WellKnownDiagnosticTags.NotConfigurable); #else result.CustomTags.Should().Contain(WellKnownDiagnosticTags.NotConfigurable); #endif }
public void GetUtilityDescriptor_Should_Contain_NotConfigurable_CustomTag_SourceScope_Specified() { foreach (SourceScope sourceScope in Enum.GetValues(typeof(SourceScope))) { // Arrange // Act var result = DiagnosticDescriptorBuilder.GetUtilityDescriptor("Foo", "", sourceScope); // Assert #if DEBUG result.CustomTags.Should().NotContain(WellKnownDiagnosticTags.NotConfigurable); #else result.CustomTags.Should().Contain(WellKnownDiagnosticTags.NotConfigurable); #endif } }