Skip to main content

CSharpTestOptions Class

Namespace: Roslynator.Testing.CSharp

Assembly: Roslynator.Testing.CSharp.dll

Represents options for a C# code verifier.

public sealed class CSharpTestOptions : Roslynator.Testing.TestOptions

Inheritance

Object TestOptions CSharpTestOptions

Constructors

ConstructorSummary
CSharpTestOptions(CSharpCompilationOptions, CSharpParseOptions, IEnumerable<MetadataReference>, IEnumerable<String>, DiagnosticSeverity, IEnumerable<KeyValuePair<String, String>>)Initializes a new instance of CSharpTestOptions.

Properties

PropertySummary
AllowedCompilerDiagnosticIdsGets a collection of compiler diagnostic IDs. (Inherited from TestOptions)
AllowedCompilerDiagnosticSeverityGets a maximal allowed compiler diagnostic severity. (Inherited from TestOptions)
CommonCompilationOptionsGets a common compilation options. (Overrides TestOptions.CommonCompilationOptions)
CommonParseOptionsGets a common parse options. (Overrides TestOptions.CommonParseOptions)
CompilationOptionsGets a compilation options that should be used to compile test project.
ConfigOptionsGets a collection of config options. (Inherited from TestOptions)
DefaultGets a default code verification options.
LanguageGets C# programming language identifier. (Overrides TestOptions.Language)
MetadataReferencesGets metadata references of a test project. (Inherited from TestOptions)
ParseOptionsGets a parse options that should be used to parse tested source code.

Methods

MethodSummary
AddAllowedCompilerDiagnosticId(String)Adds specified compiler diagnostic ID to the list of allowed compiler diagnostic IDs.
AddAllowedCompilerDiagnosticIds(IEnumerable<String>)Adds a list of specified compiler diagnostic IDs to the list of allowed compiler diagnostic IDs.
AddConfigOption(String, Boolean)Adds config option.
AddConfigOption(String, String)Adds config option.
AddConfigOptions((String Key, String Value)[])Adds config options.
CommonWithAllowedCompilerDiagnosticIds(IEnumerable<String>)(Overrides TestOptions.CommonWithAllowedCompilerDiagnosticIds)
CommonWithAllowedCompilerDiagnosticSeverity(DiagnosticSeverity)(Overrides TestOptions.CommonWithAllowedCompilerDiagnosticSeverity)
CommonWithConfigOptions(IEnumerable<KeyValuePair<String, String>>)(Overrides TestOptions.CommonWithConfigOptions)
CommonWithMetadataReferences(IEnumerable<MetadataReference>)(Overrides TestOptions.CommonWithMetadataReferences)
Equals(Object)(Inherited from Object)
GetHashCode()(Inherited from Object)
GetType()(Inherited from Object)
MemberwiseClone()(Inherited from Object)
SetConfigOption(String, Boolean)Sets config option.
SetConfigOption(String, String)Sets config option.
SetConfigOptions((String Key, String Value)[])Sets config options.
ToString()(Inherited from Object)
WithAllowedCompilerDiagnosticIds(IEnumerable<String>)
WithAllowedCompilerDiagnosticSeverity(DiagnosticSeverity)
WithCompilationOptions(CSharpCompilationOptions)
WithConfigOptions(IEnumerable<KeyValuePair<String, String>>)
WithMetadataReferences(IEnumerable<MetadataReference>)
WithParseOptions(CSharpParseOptions)