28 references to Diagnostic
Microsoft.CodeAnalysis.NetAnalyzers.UnitTests (24)
Microsoft.NetCore.Analyzers\Security\DoNotDisableSchUseStrongCryptoTests.cs (1)
287=> VerifyVB.Diagnostic(DoNotSetSwitch.DoNotDisableSchUseStrongCryptoRule)
Microsoft.NetCore.Analyzers\Security\DoNotDisableUsingServicePointManagerSecurityProtocolsTests.cs (1)
288=> VerifyVB.Diagnostic(DoNotSetSwitch.DoNotDisableSpmSecurityProtocolsRule)
Microsoft.NetCore.Analyzers\Security\DoNotUseDeprecatedSecurityProtocolsTests.cs (1)
537=> VerifyVB.Diagnostic(rule)
Microsoft.NetCore.Analyzers\Security\DoNotUseInsecureCryptographicAlgorithmsTests.cs (1)
3280=> VerifyVB.Diagnostic(rule)
Microsoft.NetCore.Analyzers\Security\DoNotUseInsecureDeserializerBinaryFormatterWithoutBinderTests.cs (1)
1509=> VerifyVB.Diagnostic(rule)
Microsoft.NetCore.Analyzers\Security\DoNotUseInsecureDeserializerJsonNetWithoutBinderTests.cs (1)
828=> VerifyVB.Diagnostic(rule)
Microsoft.NetCore.Analyzers\Security\DoNotUseInsecureDeserializerNetDataContractSerializerWithoutBinderTests.cs (1)
1080=> VerifyVB.Diagnostic(rule)
Microsoft.NetCore.Analyzers\Security\DoNotUseInsecureSettingsForJsonNetTests.cs (1)
1439=> VerifyVB.Diagnostic(rule)
Microsoft.NetCore.Analyzers\Security\JsonNetTypeNameHandlingTests.cs (1)
270=> VerifyVB.Diagnostic(rule)
Microsoft.NetCore.Analyzers\Security\SslProtocolsAnalyzerTests.cs (1)
561=> VerifyVB.Diagnostic(rule)
Microsoft.NetFramework.Analyzers\DoNotUseInsecureDtdProcessingDoNotUseLoadXmlTests.cs (1)
24=> VerifyVB.Diagnostic(DoNotUseInsecureDtdProcessingAnalyzer.RuleDoNotUseDtdProcessingOverloads).WithLocation(line, column).WithArguments("LoadXml");
Microsoft.NetFramework.Analyzers\DoNotUseInsecureDtdProcessingDoNotUseSetInnerXmlTests.cs (1)
893=> VerifyVB.Diagnostic(DoNotUseInsecureDtdProcessingAnalyzer.RuleDoNotUseSetInnerXml).WithLocation(line, column);
Microsoft.NetFramework.Analyzers\DoNotUseInsecureDtdProcessingReviewDataViewCollectionStringTests.cs (1)
24=> VerifyVB.Diagnostic(DoNotUseInsecureDtdProcessingAnalyzer.RuleReviewDtdProcessingProperties).WithLocation(line, column);
Microsoft.NetFramework.Analyzers\DoNotUseInsecureDtdProcessingUseXmlReaderForDataSetReadXmlSchemaTests.cs (1)
24=> VerifyVB.Diagnostic(DoNotUseInsecureDtdProcessingAnalyzer.RuleDoNotUseDtdProcessingOverloads).WithLocation(line, column).WithArguments("ReadXmlSchema");
Microsoft.NetFramework.Analyzers\DoNotUseInsecureDtdProcessingUseXmlReaderForDataSetReadXmlTests.cs (1)
24=> VerifyVB.Diagnostic(DoNotUseInsecureDtdProcessingAnalyzer.RuleDoNotUseDtdProcessingOverloads).WithLocation(line, column).WithArguments("ReadXml");
Microsoft.NetFramework.Analyzers\DoNotUseInsecureDtdProcessingUseXmlReaderForDataTableReadXmlSchemaTests.cs (1)
24=> VerifyVB.Diagnostic(DoNotUseInsecureDtdProcessingAnalyzer.RuleDoNotUseDtdProcessingOverloads).WithLocation(line, column).WithArguments("ReadXmlSchema");
Microsoft.NetFramework.Analyzers\DoNotUseInsecureDtdProcessingUseXmlReaderForDataTableReadXmlTests.cs (1)
24=> VerifyVB.Diagnostic(DoNotUseInsecureDtdProcessingAnalyzer.RuleDoNotUseDtdProcessingOverloads).WithLocation(line, column).WithArguments("ReadXml");
Microsoft.NetFramework.Analyzers\DoNotUseInsecureDtdProcessingUseXmlReaderForDeserializeTests.cs (1)
24=> VerifyVB.Diagnostic(DoNotUseInsecureDtdProcessingAnalyzer.RuleDoNotUseDtdProcessingOverloads).WithLocation(line, column).WithArguments("Deserialize");
Microsoft.NetFramework.Analyzers\DoNotUseInsecureDtdProcessingUseXmlReaderForLoadTests.cs (1)
24=> VerifyVB.Diagnostic(DoNotUseInsecureDtdProcessingAnalyzer.RuleDoNotUseDtdProcessingOverloads).WithLocation(line, column).WithArguments("Load");
Microsoft.NetFramework.Analyzers\DoNotUseInsecureDtdProcessingUseXmlReaderForSchemaReadTests.cs (1)
24=> VerifyVB.Diagnostic(DoNotUseInsecureDtdProcessingAnalyzer.RuleDoNotUseDtdProcessingOverloads).WithLocation(line, column).WithArguments("Read");
Microsoft.NetFramework.Analyzers\DoNotUseInsecureDtdProcessingUseXmlReaderForXPathDocumentTests.cs (1)
24=> VerifyVB.Diagnostic(DoNotUseInsecureDtdProcessingAnalyzer.RuleDoNotUseDtdProcessingOverloads).WithLocation(line, column).WithArguments(".ctor");
Microsoft.NetFramework.Analyzers\DoNotUseInsecureDtdProcessingXmlDocumentConstructedWithNoSecureResolverTests.cs (1)
24=> VerifyVB.Diagnostic(DoNotUseInsecureDtdProcessingAnalyzer.RuleXmlDocumentWithNoSecureResolver).WithLocation(line, column);
Microsoft.NetFramework.Analyzers\DoNotUseInsecureDtdProcessingXmlTextReaderConstructedWithNoSecureResolutionTests.cs (1)
25=> VerifyVB.Diagnostic(DoNotUseInsecureDtdProcessingAnalyzer.RuleXmlTextReaderConstructedWithNoSecureResolution).WithLocation(line, column);
Microsoft.NetFramework.Analyzers\DoNotUseInsecureDtdProcessingXmlTextReaderSetInsecureResolutionTests.cs (1)
24=> VerifyVB.Diagnostic(DoNotUseInsecureDtdProcessingAnalyzer.RuleXmlTextReaderSetInsecureResolution).WithLocation(line, column);
Roslyn.Diagnostics.Analyzers.UnitTests (4)
DoNotCopyValueTests.cs (4)
170VerifyVB.Diagnostic(AbstractDoNotCopyValue.NoAssignValueFromReferenceRule).WithLocation(0).WithArguments("System.Runtime.InteropServices.GCHandle")); 1233VerifyVB.Diagnostic(AbstractDoNotCopyValue.NoFieldOfCopyableTypeRule).WithLocation(0).WithArguments("CannotCopy", "Private field2 As CannotCopy")); 1319VerifyVB.Diagnostic(AbstractDoNotCopyValue.NoAutoPropertyRule).WithLocation(0).WithArguments("CannotCopy", "Private Property Property3 As CannotCopy"), 1321VerifyVB.Diagnostic(AbstractDoNotCopyValue.NoAutoPropertyRule).WithLocation(1).WithArguments("CannotCopy", "Private Property Property3 As CannotCopy"));