TestAnalyzerCollection Class
Namespace
Statiq.Testing
Interfaces
Base Types
  • object
graph BT Type-->Base0["object"] Type-.->Interface0["IAnalyzerCollection"] click Interface0 "/api/Statiq.Common/IAnalyzerCollection" Type-.->Interface1["IReadOnlyDictionary<string, IAnalyzer>"] Type-.->Interface2["IReadOnlyCollection<KeyValuePair<string, IAnalyzer>>"] Type-.->Interface3["IEnumerable<KeyValuePair<string, IAnalyzer>>"] Type-.->Interface4["IEnumerable"] Type["TestAnalyzerCollection"] class Type type-node

Syntax

public class TestAnalyzerCollection : IAnalyzerCollection, IReadOnlyDictionary<string, IAnalyzer>, 
    IReadOnlyCollection<KeyValuePair<string, IAnalyzer>>, 
    IEnumerable<KeyValuePair<string, IAnalyzer>>, IEnumerable

Properties

Name Property Type Summary
Analyzers Dictionary<string, IAnalyzer>
Count int
Keys IEnumerable<string>
this[string] IAnalyzer
Values IEnumerable<IAnalyzer>

Methods

Name Return Value Summary
Add(string, IAnalyzer) void
ContainsKey(string) bool
GetEnumerator() IEnumerator<KeyValuePair<string, IAnalyzer>>
TryGetValue(string, IAnalyzer) bool

Extension Methods

Name Value Summary
Add(IAnalyzer) void
Adds an analyzer, inferring the name from the type name and removing a trailing "Analyzer" from the type name.
Add(LogLevel, IAnalyzer) void
Adds an analyzer, inferring the name from the type name and removing a trailing "Analyzer" from the type name.
Add(LogLevel, Type) void
Adds an analyzer by type, inferring the name from the type name and removing a trailing "Analyzer" from the type name.
Add(string, LogLevel, IAnalyzer) void
Adds an analyzer, inferring the name from the type name and removing a trailing "Analyzer" from the type name.
Add(string, LogLevel, IEnumerable<KeyValuePair<string, Phase>>, Action<IAnalyzerContext>) void
Add(string, LogLevel, IEnumerable<KeyValuePair<string, Phase>>, Func<IAnalyzerContext, Task>) void
Add(string, LogLevel, string, Phase, Action<IAnalyzerContext>) void
Add(string, LogLevel, string, Phase, Func<IAnalyzerContext, Task>) void
Add(string, LogLevel, Type) void
Adds an analyzer by type, inferring the name from the type name and removing a trailing "Analyzer" from the type name.
Add(string, Type) void
Adds an analyzer by type, inferring the name from the type name and removing a trailing "Analyzer" from the type name.
Add(Type) void
Adds an analyzer by type, inferring the name from the type name and removing a trailing "Analyzer" from the type name.
Add<TAnalyzer>(LogLevel) void
Adds an analyzer by type, inferring the name from the type name.
Add<TAnalyzer>(string, LogLevel) void
Adds an analyzer by type.
Add<TAnalyzer>(string) void
Adds an analyzer by type.
Add<TAnalyzer>() void
Adds an analyzer by type, inferring the name from the type name.
AddDocument(string, LogLevel, IEnumerable<KeyValuePair<string, Phase>>, Action<IDocument, IAnalyzerContext>) void
AddDocument(string, LogLevel, IEnumerable<KeyValuePair<string, Phase>>, Func<IDocument, IAnalyzerContext, Task>) void
AddDocument(string, LogLevel, string, Phase, Action<IDocument, IAnalyzerContext>) void
AddDocument(string, LogLevel, string, Phase, Func<IDocument, IAnalyzerContext, Task>) void
Concat<KeyValuePair<string, IAnalyzer>>(KeyValuePair<string, IAnalyzer>) IEnumerable<T>
ContainsAnyKeys<string, IAnalyzer>(IEnumerable<string>) bool
Determines whether the dictionary contains all the specified keys.
ContainsAnyKeys<string, IAnalyzer>(string[]) bool
Determines whether the dictionary contains all the specified keys.
ContainsKeys<string, IAnalyzer>(IEnumerable<string>) bool
Determines whether the dictionary contains all the specified keys.
ContainsKeys<string, IAnalyzer>(string[]) bool
Determines whether the dictionary contains all the specified keys.
GetNext<KeyValuePair<string, IAnalyzer>>(KeyValuePair<string, IAnalyzer>, IEqualityComparer<KeyValuePair<string, IAnalyzer>>) T
GetNext<KeyValuePair<string, IAnalyzer>>(KeyValuePair<string, IAnalyzer>) T
GetPrevious<KeyValuePair<string, IAnalyzer>>(KeyValuePair<string, IAnalyzer>, IEqualityComparer<KeyValuePair<string, IAnalyzer>>) T
GetPrevious<KeyValuePair<string, IAnalyzer>>(KeyValuePair<string, IAnalyzer>) T
GroupByMany<KeyValuePair<string, IAnalyzer>, TKey, TElement>(Func<KeyValuePair<string, IAnalyzer>, IEnumerable<TKey>>, Func<KeyValuePair<string, IAnalyzer>, TElement>, IEqualityComparer<TKey>) IEnumerable<IGrouping<TKey, TElement>>
Groups the elements of a sequence according to a specified key selector function that returns a sequence of keys. The keys are compared by using a comparer and each group's elements are projected by using a specified function.
GroupByMany<KeyValuePair<string, IAnalyzer>, TKey, TElement>(Func<KeyValuePair<string, IAnalyzer>, IEnumerable<TKey>>, Func<KeyValuePair<string, IAnalyzer>, TElement>) IEnumerable<IGrouping<TKey, TElement>>
Groups the elements of a sequence according to a specified key selector function that returns a sequence of keys and projects the elements for each group by using a specified function.
GroupByMany<KeyValuePair<string, IAnalyzer>, TKey>(Func<KeyValuePair<string, IAnalyzer>, IEnumerable<TKey>>, IEqualityComparer<TKey>) IEnumerable<IGrouping<TKey, TSource>>
Groups the elements of a sequence according to a specified key selector function that returns a sequence of keys and compares the keys by using a specified comparer.
GroupByMany<KeyValuePair<string, IAnalyzer>, TKey>(Func<KeyValuePair<string, IAnalyzer>, IEnumerable<TKey>>) IEnumerable<IGrouping<TKey, TSource>>
Groups the elements of a sequence according to a specified key selector function that returns a sequence of keys.
GroupByManyToMany<KeyValuePair<string, IAnalyzer>, TKey, TElement>(Func<KeyValuePair<string, IAnalyzer>, IEnumerable<TKey>>, Func<KeyValuePair<string, IAnalyzer>, IEnumerable<TElement>>, IEqualityComparer<TKey>) IEnumerable<IGrouping<TKey, TElement>>
Groups the elements of a sequence according to a specified key selector function that returns a sequence of keys. The keys are compared by using a comparer and each group's elements are projected by using a specified function that returns a sequence of elements.
GroupByManyToMany<KeyValuePair<string, IAnalyzer>, TKey, TElement>(Func<KeyValuePair<string, IAnalyzer>, IEnumerable<TKey>>, Func<KeyValuePair<string, IAnalyzer>, IEnumerable<TElement>>) IEnumerable<IGrouping<TKey, TElement>>
Groups the elements of a sequence according to a specified key selector function that returns a sequence of keys and projects the elements for each group by using a specified function that returns a sequence of elements.
ParallelForEachAsync<KeyValuePair<string, IAnalyzer>>(Func<KeyValuePair<string, IAnalyzer>, Task>, CancellationToken) Task
ParallelSelectAsync<KeyValuePair<string, IAnalyzer>, TResult>(Func<KeyValuePair<string, IAnalyzer>, Task<TResult>>, CancellationToken) Task<IEnumerable<TResult>>
Invokes an async selector in parallel.
ParallelSelectManyAsync<KeyValuePair<string, IAnalyzer>, TResult>(Func<KeyValuePair<string, IAnalyzer>, Task<IEnumerable<TResult>>>, CancellationToken) Task<IEnumerable<TResult>>
Invokes an async selector that returns multiple results in parallel.
ParallelWhereAsync<KeyValuePair<string, IAnalyzer>>(Func<KeyValuePair<string, IAnalyzer>, Task<bool>>, CancellationToken) Task<IEnumerable<TSource>>
RequireKeys<string, IAnalyzer>(IEnumerable<string>) void
Verifies that a dictionary contains all requires keys. An System.ArgumentException will be thrown if the specified keys are not all present in the dictionary.
RequireKeys<string, IAnalyzer>(string[]) void
Verifies that a dictionary contains all requires keys. An System.ArgumentException will be thrown if the specified keys are not all present in the dictionary.
StartsWith<KeyValuePair<string, IAnalyzer>>(IEnumerable<KeyValuePair<string, IAnalyzer>>, IEqualityComparer<KeyValuePair<string, IAnalyzer>>) bool
Determines whether the items starts with the specified values.
StartsWith<KeyValuePair<string, IAnalyzer>>(IEnumerable<KeyValuePair<string, IAnalyzer>>) bool
Determines whether the items starts with the specified values.
ThrowIfNull<TestAnalyzerCollection>(string) T
ToDocument<TestAnalyzerCollection>(IContentProvider) IDocument
ToDocument<TestAnalyzerCollection>(IEnumerable<KeyValuePair<string, object>>, IContentProvider) IDocument
ToDocument<TestAnalyzerCollection>(NormalizedPath, IContentProvider) IDocument
ToDocument<TestAnalyzerCollection>(NormalizedPath, IEnumerable<KeyValuePair<string, object>>, IContentProvider) IDocument
ToDocument<TestAnalyzerCollection>(NormalizedPath, NormalizedPath, IContentProvider) IDocument
ToDocument<TestAnalyzerCollection>(NormalizedPath, NormalizedPath, IEnumerable<KeyValuePair<string, object>>, IContentProvider) IDocument
ToDocuments<KeyValuePair<string, IAnalyzer>>(Func<KeyValuePair<string, IAnalyzer>, IContentProvider>) IEnumerable<IDocument>
ToDocuments<KeyValuePair<string, IAnalyzer>>(Func<KeyValuePair<string, IAnalyzer>, IEnumerable<KeyValuePair<string, object>>>, Func<KeyValuePair<string, IAnalyzer>, IContentProvider>) IEnumerable<IDocument>
ToDocuments<KeyValuePair<string, IAnalyzer>>(Func<KeyValuePair<string, IAnalyzer>, NormalizedPath>, Func<KeyValuePair<string, IAnalyzer>, IContentProvider>) IEnumerable<IDocument>
ToDocuments<KeyValuePair<string, IAnalyzer>>(Func<KeyValuePair<string, IAnalyzer>, NormalizedPath>, Func<KeyValuePair<string, IAnalyzer>, IEnumerable<KeyValuePair<string, object>>>, Func<KeyValuePair<string, IAnalyzer>, IContentProvider>) IEnumerable<IDocument>
ToDocuments<KeyValuePair<string, IAnalyzer>>(Func<KeyValuePair<string, IAnalyzer>, NormalizedPath>, Func<KeyValuePair<string, IAnalyzer>, NormalizedPath>, Func<KeyValuePair<string, IAnalyzer>, IContentProvider>) IEnumerable<IDocument>
ToDocuments<KeyValuePair<string, IAnalyzer>>(Func<KeyValuePair<string, IAnalyzer>, NormalizedPath>, Func<KeyValuePair<string, IAnalyzer>, NormalizedPath>, Func<KeyValuePair<string, IAnalyzer>, IEnumerable<KeyValuePair<string, object>>>, Func<KeyValuePair<string, IAnalyzer>, IContentProvider>) IEnumerable<IDocument>
ToLookupMany<KeyValuePair<string, IAnalyzer>, TKey, TElement>(Func<KeyValuePair<string, IAnalyzer>, IEnumerable<TKey>>, Func<KeyValuePair<string, IAnalyzer>, TElement>, IEqualityComparer<TKey>) ILookup<TKey, TElement>
Creates a lookup from a sequence according to a specified key selector function that returns a sequence of keys. The keys are compared by using a comparer and each group's elements are projected by using a specified function.
ToLookupMany<KeyValuePair<string, IAnalyzer>, TKey, TElement>(Func<KeyValuePair<string, IAnalyzer>, IEnumerable<TKey>>, Func<KeyValuePair<string, IAnalyzer>, TElement>) ILookup<TKey, TElement>
Creates a lookup from a sequence according to a specified key selector function that returns a sequence of keys and projects the elements for each group by using a specified function.
ToLookupMany<KeyValuePair<string, IAnalyzer>, TKey>(Func<KeyValuePair<string, IAnalyzer>, IEnumerable<TKey>>, IEqualityComparer<TKey>) ILookup<TKey, TSource>
Creates a lookup from a sequence according to a specified key selector function that returns a sequence of keys and compares the keys by using a specified comparer.
ToLookupMany<KeyValuePair<string, IAnalyzer>, TKey>(Func<KeyValuePair<string, IAnalyzer>, IEnumerable<TKey>>) ILookup<TKey, TSource>
Creates a lookup from a sequence according to a specified key selector function that returns a sequence of keys.
ToLookupManyToMany<KeyValuePair<string, IAnalyzer>, TKey, TElement>(Func<KeyValuePair<string, IAnalyzer>, IEnumerable<TKey>>, Func<KeyValuePair<string, IAnalyzer>, IEnumerable<TElement>>, IEqualityComparer<TKey>) ILookup<TKey, TElement>
Creates a lookup from a sequence according to a specified key selector function that returns a sequence of keys. The keys are compared by using a comparer and each group's elements are projected by using a specified function that returns a sequence of elements.
ToLookupManyToMany<KeyValuePair<string, IAnalyzer>, TKey, TElement>(Func<KeyValuePair<string, IAnalyzer>, IEnumerable<TKey>>, Func<KeyValuePair<string, IAnalyzer>, IEnumerable<TElement>>) ILookup<TKey, TElement>
Creates a lookup from a sequence according to a specified key selector function that returns a sequence of keys and projects the elements for each group by using a specified function that returns a sequence of elements.
ToStringTable<KeyValuePair<string, IAnalyzer>>(string[], Func<KeyValuePair<string, IAnalyzer>, object>[]) string