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

TestOptions.ForbiddenConstants Property

ForbiddenConstants

Gets the set of preprocessor symbols that are forbidden for this test, test would be skipped if any is present. To add an item into this collection from a test, add this comment to your test file: // @ForbiddenConstant(constant).

Declaration
public List<string> ForbiddenConstants { get; }
Property Value
Type Description
List<String>