ShouldHaveSingleWithSource<TDocument>(IEnumerable<TDocument>, NormalizedPath, string) Method
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<TDocument>
sourcePath NormalizedPath
customMessage string

Return Value

Type Description
TDocument