This namespace contains the framework that allows you to test how your custom aspects transform your code. For more information, see Snapshot testing of aspects.
Classes
AspectTestClass
A base class for xUnit test classes that run snapshot tests of Metalama aspects.
AspectTestFramework
CurrentDirectoryAttribute
An xUnit data attribute that generates test cases from snapshot test files in the current directory.
CurrentProjectAttribute
An xUnit data attribute that generates test cases from all snapshot test files in the current project.
DefaultAspectTestClass
A base class for snapshot test suites that automatically discover test files in the project's source directory.
FileExtensions
List of file extensions used by the test framework.
InvalidTestOptionException
InvalidTestTargetException
TestDirectoryOptions
Represent the content of the metalamaTests.json file. This class is JSON-serializable.
TestLiveTemplateAttribute
An attribute used in LiveTemplate and LiveTemplatePreview tests to mark the declaration to which an aspect should be applied as a live template.
TestOptions
A set of test options that control how snapshot tests are executed and validated.
TestOutputNormalizer
TestSyntaxTree
Represents the test results for a syntax tree in Metalama.Testing.AspectTesting.TestResult.
Enums
TestScenario
Specifies the scenario to simulate when running a snapshot test.