A utility method to execute modules in serial. The resulting documents will be materialized before returning.
A new TestExecutionContext will be created.
- Namespace
- Statiq.Testing
- Containing Type
- BaseFixture
Syntax
public static Task<ImmutableArray<TestDocument>> ExecuteAsync(TestDocument document, params IModule[] modules)
Parameters
| Name |
Type |
Description |
| document |
TestDocument |
The initial input document. |
| modules |
IModule[] |
The modules to execute. |
Return Value
| Type |
Description |
| Task<ImmutableArray<TestDocument>> |
A materialized list of result documents from the last module. |