public void TestEmptyDictionaryOfHeaders() { Dictionary <String, String> headers = new Dictionary <string, string>(); DictionaryHeaderProvider provider = new DictionaryHeaderProvider(headers); Assert.AreEqual(0, provider.GetHeaders().Length); }
public void TestHeaderValuesCorrespondToDictionaryValuesSingle() { Dictionary <String, String> headers = new Dictionary <string, string>(); headers.Add("a", "b"); DictionaryHeaderProvider provider = new DictionaryHeaderProvider(headers); Assert.AreEqual("b", provider.GetHeaders()[0].Value); }
public void TestHeaderValuesCorrespondToDictionaryKeysDouble() { Dictionary <String, String> headers = new Dictionary <string, string>(); headers.Add("a", "b"); headers.Add("c", "d"); DictionaryHeaderProvider provider = new DictionaryHeaderProvider(headers); Assert.AreEqual("c", provider.GetHeaders()[1].Name); }
public void TestHeaderValuesCorrespondToObjectValuesDouble() { DictionaryHeaderProvider provider = new DictionaryHeaderProvider(new { a = "b", c = "d" }); Assert.AreEqual("d", provider.GetHeaders()[1].Value); }
public void TestHeaderValuesCorrespondToObjectKeysSingle() { DictionaryHeaderProvider provider = new DictionaryHeaderProvider(new { a = "b" }); Assert.AreEqual("a", provider.GetHeaders()[0].Name); }