Skip to main content

CSharpTestOptions(CSharpCompilationOptions, CSharpParseOptions, IEnumerable<MetadataReference>, IEnumerable<String>, DiagnosticSeverity, IEnumerable<KeyValuePair<String, String>>) Constructor

Containing Type: CSharpTestOptions

Assembly: Roslynator.Testing.CSharp.dll

Initializes a new instance of CSharpTestOptions.

public CSharpTestOptions(Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions? compilationOptions = null, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions? parseOptions = null, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.MetadataReference>? metadataReferences = null, System.Collections.Generic.IEnumerable<string>? allowedCompilerDiagnosticIds = null, Microsoft.CodeAnalysis.DiagnosticSeverity allowedCompilerDiagnosticSeverity = Info, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, string>>? configOptions = null)

Parameters

compilationOptions CSharpCompilationOptions

parseOptions CSharpParseOptions

metadataReferences IEnumerable<MetadataReference>

allowedCompilerDiagnosticIds IEnumerable<String>

allowedCompilerDiagnosticSeverity DiagnosticSeverity

configOptions IEnumerable<KeyValuePair<String, String>>