Beispiel #1
0
 /// <summary>
 /// Tests if the provided collection contains the required key.
 /// Upcast from sbyte to long for convenience
 /// </summary>
 /// <param name="continuation">Continuation to operate on</param>
 /// <param name="key">Key to look for</param>
 /// <typeparam name="TKey">Type of the dictionary keys</typeparam>
 public static IDictionaryValueContinuation <long> Key <TKey>(
     this IContain <IEnumerable <KeyValuePair <TKey, sbyte> > > continuation,
     TKey key
     )
 {
     return(continuation.Key(key, NULL_STRING));
 }
Beispiel #2
0
 /// <summary>
 /// Tests if the provided collection contains the required key.
 /// </summary>
 /// <param name="continuation">Continuation to operate on</param>
 /// <param name="key">Key to look for</param>
 /// <param name="customMessage">Custom message to add to failure messages</param>
 /// <typeparam name="TKey">Type of the dictionary keys</typeparam>
 /// <typeparam name="TValue">Type of the dictionary values</typeparam>
 public static IDictionaryValueContinuation <TValue> Key <TKey, TValue>(
     this IContain <IEnumerable <KeyValuePair <TKey, TValue> > > continuation,
     TKey key,
     string customMessage
     )
 {
     return(continuation.Key(key, () => customMessage));
 }