MetalamaAPI documentationAdvanced APIMetalama.​Testing.​Aspect­TestingTest­OptionsDependency­Language­Version
Open sandboxFocus

TestOptions.DependencyLanguageVersion Property

DependencyLanguageVersion

Gets or sets the version of the C# language that the dependencies of the test should be compiled with. To set this option in a test, add this comment to your test file: // @DependencyLanguageVersion(version).

Declaration
public Nullable<LanguageVersion> DependencyLanguageVersion { get; set; }
Property Value
Type Description
Nullable<Microsoft.CodeAnalysis.CSharp.LanguageVersion>