sdk/dotnet/test/Datasync.Common.Test/AssertEx.cs
/// <summary>
/// Asserts if the dictionary contains the provided value.
/// </summary>
/// <param name="key">the header name</param>
/// <param name="expected">the header value</param>
/// <param name="dict">The dictionary to check</param>
Asserts if the dictionary contains the provided value.
Asserts if the dictionary contains the provided value .
public static void Contains(string key, string expected, IDictionary<string, string> dict)
        {
            Assert.True(dict.TryGetValue(key, out string value), $"Dictionary does not contain key {key}");
            Assert.Equal(expected, value);
        }
public static void Contains ( string key , string expected , IDictionary < string , string > dict ) { Assert . True ( dict . TryGetValue ( key , out string value ) , $" Dictionary does not contain key  { key } " ) ; Assert . Equal ( expected , value ) ; }
Asserts if the dictionary contains the provided value.
Asserts if the dictionary contains the provided value .
key
string
the header name
the header name
expected
string
the header value
the header value
dict
IDictionary<string, string>
The dictionary to check
The dictionary to check