Skip to main content

DiagnosticTestData.Update(DiagnosticDescriptor, String, IEnumerable<TextSpan>, IEnumerable<TextSpan>, IEnumerable<AdditionalFile>, String, IFormatProvider, String, Boolean) Method

Containing Type: DiagnosticTestData

Assembly: Roslynator.Testing.Common.dll

WARNING: This API is now obsolete.

This method is obsolete and will be removed in future version.

Creates and return new instance of DiagnosticTestData updated with specified values.

[Obsolete("This method is obsolete and will be removed in future version.")]
public Roslynator.Testing.DiagnosticTestData Update(Microsoft.CodeAnalysis.DiagnosticDescriptor descriptor, string source, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Text.TextSpan> spans, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.Text.TextSpan> additionalSpans, System.Collections.Generic.IEnumerable<Roslynator.Testing.AdditionalFile> additionalFiles, string diagnosticMessage, IFormatProvider formatProvider, string equivalenceKey, bool alwaysVerifyAdditionalLocations)

Parameters

descriptor DiagnosticDescriptor

source String

spans IEnumerable<TextSpan>

additionalSpans IEnumerable<TextSpan>

additionalFiles IEnumerable<AdditionalFile>

diagnosticMessage String

formatProvider IFormatProvider

equivalenceKey String

alwaysVerifyAdditionalLocations Boolean

Returns

DiagnosticTestData

Attributes