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