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 ForbiddenConstants

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>
  • Navigation