public void ReplaceHeaderTest() { var n = new NameValueCollection(); MandrillHeaderData<string> l = new MandrillHeaderData<string>("a", n); l.Add("bb"); l.Add("cc"); var v = n.GetValues("a"); Assert.AreEqual(1, v.Count()); Assert.AreEqual("bb,cc", v.First()); }
public void ReplaceHeaderTest() { var n = new NameValueCollection(); MandrillHeaderData <string> l = new MandrillHeaderData <string>("a", n); l.Add("bb"); l.Add("cc"); var v = n.GetValues("a"); Assert.AreEqual(1, v.Count()); Assert.AreEqual("bb,cc", v.First()); }
public void AddElementTest() { var n = new NameValueCollection(); MandrillHeaderData<string> l = new MandrillHeaderData<string>("a", n); l.Add("bb"); Assert.AreEqual("bb", n["a"]); }
public void AddElementTest() { var n = new NameValueCollection(); MandrillHeaderData <string> l = new MandrillHeaderData <string>("a", n); l.Add("bb"); Assert.AreEqual("bb", n["a"]); }