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

TestOptions.DependencyDefinedConstants Property


Gets the set of preprocessor symbols that are defined for this test dependency. To add an item into this collection from a test, add this comment to your test file: // @DependencyDefinedConstant(constant). All constants of the test project and TESTRUNNER and METALAMA are defined by default. Constants added via DefinedConstants option are not added.

public List<string> DependencyDefinedConstants { get; }
Property Value
Type Description