Open sandboxFocus
  • TOC

Metalama Documentation

Getting started

Video tutorials

Conceptual documentation

Commented examples

API documentation

Aspect API

Extensions API

Patterns API

Flashtrace API

Introspection API

Advanced API

Metalama.​Compiler

Metalama.​Compiler.​Services

Metalama.​Framework.​Engine

Metalama.​Framework.​Engine.​Aspect­Weavers

Metalama.​Framework.​Engine.​Code­Fixes

Metalama.​Framework.​Engine.​Code­Model

Metalama.​Framework.​Engine.​Collections

Metalama.​Framework.​Engine.​Diagnostics

Metalama.​Framework.​Engine.​Formatting

Metalama.​Framework.​Engine.​Metrics

Metalama.​Framework.​Engine.​Services

Metalama.​Framework.​Engine.​Utilities

Metalama.​Framework.​Engine.​Utilities.​Roslyn

Metalama.​Testing.​Aspect­Testing

Aspect­Test­Class

Aspect­Test­Framework

Current­Directory­Attribute3

Current­Project­Attribute3

Default­Aspect­Test­Class2

File­Extensions

Invalid­Test­Option­Exception2

Invalid­Test­Target­Exception2

Test­Assembly­Reference

Test­Directory­Options2

Test­Live­Template­Attribute2

Test­Options

Test­Output­Normalizer

Test­Runner­Options2

Test­Scenario

Test­Syntax­Tree

Test­Syntax­Tree­Kind

Metalama.​Testing.​Unit­Testing

Post­Sharp API migration

  • Article

Property DefinedConstants

DefinedConstants

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

Declaration
public List<string> DefinedConstants { get; }
Property Value
Type Description
List<string>
  • Navigation