MetalamaAPI documentationAdvanced APIMetalama.​Testing.​Aspect­TestingTest­OptionsSkip­Adding­System­Files
Open sandboxFocus

TestOptions.SkipAddingSystemFiles Property

SkipAddingSystemFiles

Gets or sets a value indicating whether adding system files to the test compilation should be skipped. Namely, there is one file that adds the System.Runtime.CompilerServices.IsExternalInit type on .Net Framework. To enable this option in a test, add this comment to your test file: // @SkipAddingSystemFiles.

Declaration
public Nullable<bool> SkipAddingSystemFiles { get; set; }
Property Value
Type Description
Nullable<Boolean>