DiagnosticTestData Constructors
Containing Type: DiagnosticTestData
Assembly: Roslynator.Testing.Common.dll
Overloads
Constructor | Summary |
---|---|
DiagnosticTestData(DiagnosticDescriptor, String, IEnumerable<TextSpan>, IEnumerable<TextSpan>, IEnumerable<AdditionalFile>, String, IFormatProvider, String, Boolean) | [deprecated] Initializes a new instance of DiagnosticTestData. |
DiagnosticTestData(String, IEnumerable<TextSpan>, IEnumerable<TextSpan>, IEnumerable<AdditionalFile>, String, IFormatProvider, String, Boolean) | Initializes a new instance of DiagnosticTestData. |
DiagnosticTestData(DiagnosticDescriptor, String, IEnumerable<TextSpan>, IEnumerable<TextSpan>, IEnumerable<AdditionalFile>, String, IFormatProvider, String, Boolean)
WARNING: This API is now obsolete.
This constructor is obsolete and will be removed in future versions.
Initializes a new instance of DiagnosticTestData.
[Obsolete("This constructor is obsolete and will be removed in future versions.")]
public DiagnosticTestData(Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, string source, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Text.TextSpan>? spans, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Text.TextSpan>? additionalSpans = null, System.Collections.Generic.IEnumerable<Roslynator.Testing.AdditionalFile>? additionalFiles = null, string? diagnosticMessage = null, IFormatProvider? formatProvider = null, string? equivalenceKey = null, bool alwaysVerifyAdditionalLocations = false)
Parameters
descriptor DiagnosticDescriptor
source String
spans IEnumerable<TextSpan>
additionalSpans IEnumerable<TextSpan>
additionalFiles IEnumerable<AdditionalFile>
diagnosticMessage String
formatProvider IFormatProvider
equivalenceKey String
alwaysVerifyAdditionalLocations Boolean
Attributes
DiagnosticTestData(String, IEnumerable<TextSpan>, IEnumerable<TextSpan>, IEnumerable<AdditionalFile>, String, IFormatProvider, String, Boolean)
Initializes a new instance of DiagnosticTestData.
public DiagnosticTestData(string source, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Text.TextSpan>? spans, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Text.TextSpan>? additionalSpans = null, System.Collections.Generic.IEnumerable<Roslynator.Testing.AdditionalFile>? additionalFiles = null, string? diagnosticMessage = null, IFormatProvider? formatProvider = null, string? equivalenceKey = null, bool alwaysVerifyAdditionalLocations = false)
Parameters
source String
spans IEnumerable<TextSpan>
additionalSpans IEnumerable<TextSpan>
additionalFiles IEnumerable<AdditionalFile>
diagnosticMessage String
formatProvider IFormatProvider
equivalenceKey String
alwaysVerifyAdditionalLocations Boolean