Skip to main content

DiagnosticTestData Class

Namespace: Roslynator.Testing

Assembly: Roslynator.Testing.Common.dll

Represents test data for a diagnostic and its fix.

public sealed class DiagnosticTestData

Inheritance

Object DiagnosticTestData

Constructors

ConstructorSummary
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.

Properties

PropertySummary
AdditionalFilesGets additional source files.
AdditionalSpansGets diagnostic's additional locations.
AlwaysVerifyAdditionalLocationsTrue if additional locations should be always verified.
Descriptor[deprecated] Gets diagnostic's descriptor.
DiagnosticMessageGets diagnostic's message
EquivalenceKeyGets code action's equivalence key.
FormatProviderGets format provider to be used to format diagnostic's message.
SourceGets source that will report specified diagnostic.
SpansGets diagnostic's locations.

Methods

MethodSummary
Equals(Object)(Inherited from Object)
GetHashCode()(Inherited from Object)
GetType()(Inherited from Object)
MemberwiseClone()(Inherited from Object)
ToString()(Inherited from Object)
Update(DiagnosticDescriptor, String, IEnumerable<TextSpan>, IEnumerable<TextSpan>, IEnumerable<AdditionalFile>, String, IFormatProvider, String, Boolean)[deprecated] Creates and return new instance of DiagnosticTestData updated with specified values.