MetalamaAPI documentationAdvanced APIMetalama.​Testing.​Aspect­TestingTest­OptionsKeep­Disabled­Code
Open sandboxFocus

TestOptions.KeepDisabledCode Property

KeepDisabledCode

Gets or sets a value indicating whether disabled code should be kept as trivia. To set this option in a test, add this comment to your test file: // @KeepDisabledCode.

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