MetalamaAPI documentationAdvanced APIMetalama.​Testing.​Aspect­TestingTest­OptionsRequired­Constants
Open sandboxFocus

TestOptions.RequiredConstants Property

RequiredConstants

Gets the set of preprocessor symbols that are required for this test, otherwise the test would be skipped. To add an item into this collection from a test, add this comment to your test file: // @RequiredConstant(constant).

Declaration
public List<string> RequiredConstants { get; }
Property Value
Type Description
System.Collections.Generic.List<System.String>