TestExecutionContext.

GetDocument(FilePath, IEnumerable<KeyValuePair<string, Object>>) Method

Summary

Gets a new document with the specified source and metadata (in addition to the default initial metadata).
Assembly
Wyam.Testing.dll
Namespace
Wyam.Testing.Execution
Containing Type
TestExecutionContext

Syntax

public IDocument GetDocument(FilePath source, IEnumerable<KeyValuePair<string, Object>> items = null)

Parameters

Name Type Description
source FilePath The source.
items IEnumerable<KeyValuePair<string, Object>> The metadata items.

Return Value

Type Description
IDocument The new document.
GitHub