TestShortcodeCollection Class
Namespace
Statiq.Testing
Interfaces
Base Types
graph BT Type-->Base0["Dictionary<string, Func<IShortcode>>"] Base0-->Base1["object"] Type-.->Interface0["IDictionary<string, Func<IShortcode>>"] Type-.->Interface1["ICollection<KeyValuePair<string, Func<IShortcode>>>"] Type-.->Interface2["IDictionary"] Type-.->Interface3["ICollection"] Type-.->Interface4["IReadOnlyDictionary<string, Func<IShortcode>>"] Type-.->Interface5["IReadOnlyCollection<KeyValuePair<string, Func<IShortcode>>>"] Type-.->Interface6["IEnumerable<KeyValuePair<string, Func<IShortcode>>>"] Type-.->Interface7["ISerializable"] Type-.->Interface8["IDeserializationCallback"] Type-.->Interface9["IShortcodeCollection"] click Interface9 "/api/Statiq.Common/IShortcodeCollection" Type-.->Interface10["IReadOnlyShortcodeCollection"] click Interface10 "/api/Statiq.Common/IReadOnlyShortcodeCollection" Type-.->Interface11["IReadOnlyCollection<string>"] Type-.->Interface12["IEnumerable<string>"] Type-.->Interface13["IEnumerable"] Type["TestShortcodeCollection"] class Type type-node

Syntax

public class TestShortcodeCollection : Dictionary<string, Func<IShortcode>>, 
    IDictionary<string, Func<IShortcode>>, ICollection<KeyValuePair<string, Func<IShortcode>>>, 
    IDictionary, ICollection, IReadOnlyDictionary<string, Func<IShortcode>>, 
    IReadOnlyCollection<KeyValuePair<string, Func<IShortcode>>>, 
    IEnumerable<KeyValuePair<string, Func<IShortcode>>>, ISerializable, IDeserializationCallback, 
    IShortcodeCollection, IReadOnlyShortcodeCollection, IReadOnlyCollection<string>, 
    IEnumerable<string>, IEnumerable

Constructors

Methods

Name Return Value Summary
Contains(string) bool
CreateInstance(string) IShortcode

Extension Methods

Name Value Summary
Add(string, Config<ShortcodeResult>) void
Adds a shortcode and uses a Config<TValue> to determine the shortcode result.
Add(string, Func<KeyValuePair<string, string>[], string, IDocument, IExecutionContext, IEnumerable<ShortcodeResult>>) void
Adds a shortcode that determines the result content using the declared arguments and content and the current document and execution context.
Add(string, Func<KeyValuePair<string, string>[], string, IDocument, IExecutionContext, ShortcodeResult>) void
Adds a shortcode that determines the result content using the declared arguments and content and the current document and execution context.
Add(string, Func<KeyValuePair<string, string>[], string, IDocument, IExecutionContext, Task<IEnumerable<ShortcodeResult>>>) void
Adds a shortcode that determines the result content using the declared arguments and content and the current document and execution context.
Add(string, Func<KeyValuePair<string, string>[], string, IDocument, IExecutionContext, Task<ShortcodeResult>>) void
Adds a shortcode that determines the result content using the declared arguments and content and the current document and execution context.
Add(string, Type) void
Adds a shortcode by type.
Add(Type) void
Adds a shortcode by type, inferring the name from the type name and removing a trailing "Shortcode" from the type name.
Add<TShortcode>(string) void
Adds a shortcode by type.
Add<TShortcode>() void
Adds a shortcode by type, inferring the name from the type name.
AddOrReplaceRange<string, Func<IShortcode>>(IEnumerable<KeyValuePair<string, Func<IShortcode>>>) void
AddRange<KeyValuePair<string, Func<IShortcode>>>(IEnumerable<KeyValuePair<string, Func<IShortcode>>>) void
Adds a range of values to a collection.
AddRange<KeyValuePair<string, Func<IShortcode>>>(KeyValuePair<string, Func<IShortcode>>[]) void
Adds a range of values to a collection.
ContainsAnyKeys<string, Func<IShortcode>>(IEnumerable<string>) bool
Determines whether the dictionary contains all the specified keys.
ContainsAnyKeys<string, Func<IShortcode>>(string[]) bool
Determines whether the dictionary contains all the specified keys.
ContainsKeys<string, Func<IShortcode>>(IEnumerable<string>) bool
Determines whether the dictionary contains all the specified keys.
ContainsKeys<string, Func<IShortcode>>(string[]) bool
Determines whether the dictionary contains all the specified keys.
RemoveAll<KeyValuePair<string, Func<IShortcode>>>(Func<KeyValuePair<string, Func<IShortcode>>, bool>) int
Removes all items that match a predicate from a collection.
RequireKeys<string, Func<IShortcode>>(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, Func<IShortcode>>(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.
ThrowIfNull<TestShortcodeCollection>(string) T
ToDocument<TestShortcodeCollection>(IContentProvider) IDocument
ToDocument<TestShortcodeCollection>(IEnumerable<KeyValuePair<string, object>>, IContentProvider) IDocument
ToDocument<TestShortcodeCollection>(NormalizedPath, IContentProvider) IDocument
ToDocument<TestShortcodeCollection>(NormalizedPath, IEnumerable<KeyValuePair<string, object>>, IContentProvider) IDocument
ToDocument<TestShortcodeCollection>(NormalizedPath, NormalizedPath, IContentProvider) IDocument
ToDocument<TestShortcodeCollection>(NormalizedPath, NormalizedPath, IEnumerable<KeyValuePair<string, object>>, IContentProvider) IDocument
TryAdd<string, TArg, Func<IShortcode>>(string, TArg, Func<string, TArg, Func<IShortcode>>) bool
TryAdd<string, Func<IShortcode>>(string, Func<string, Func<IShortcode>>) bool
TryAddRange<string, Func<IShortcode>>(IEnumerable<KeyValuePair<string, Func<IShortcode>>>) void