Summary
Clones the specified source document with a new source and additional metadata (all existing metadata is retained)
or gets a new document if the source document is null or
AsNewDocuments()
was called on the module.
- Assembly
- Wyam
.Testing .dll - Namespace
- Wyam
.Testing .Execution - Containing Type
- TestExecutionContext
Syntax
public IDocument GetDocument(IDocument sourceDocument, FilePath source, IEnumerable<KeyValuePair<string, Object>> items = null)
Parameters
Return Value
Type | Description |
---|---|
IDocument | The cloned or new document. |