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
AspectTestFramework
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.
Interfaces
IDiffToolRunner
Provides diff tool functionality for the test framework.
When no implementation is available (i.e., when the Metalama.Extensions.DiffEngine package is not referenced),
diff tool features are silently disabled and tests continue to work normally.
IHtmlCodeWriterFactory
Factory for creating IHtmlCodeWriter instances.
When no implementation is available (i.e., when the Metalama.Extensions.HtmlWriter package is not referenced),
HTML output features are disabled and tests continue to work normally.
Enums
TestScenario
Specifies the scenario to simulate when running a snapshot test.