- Namespace
- Statiq
.Common - Containing Type
- ShouldExtensions
Syntax
public static TDocument ShouldHaveSingleWithSource<TDocument>(this IEnumerable<TDocument> documents, NormalizedPath sourcePath, string customMessage = null)
where TDocument : class, IDocument
Type Parameters
Name | Description |
---|---|
TDocument |
Parameters
Name | Type | Description |
---|---|---|
documents | IEnumerable |
|
sourcePath | NormalizedPath | |
customMessage | string |
Return Value
Type | Description |
---|---|
TDocument |