public void TestGetValues() { var requestHeaders = new CosmosRequestMessageHeaders(); string value1 = Guid.NewGuid().ToString(); requestHeaders.Add(Key, value1); IEnumerable <string> values = requestHeaders.GetValues(Key); Assert.AreEqual(1, values.Count()); }
public void TestAddAndGetAndSet() { string value1 = Guid.NewGuid().ToString(); string value2 = Guid.NewGuid().ToString(); var requestHeaders = new CosmosRequestMessageHeaders(); requestHeaders.Add(Key, value1); Assert.AreEqual(value1, requestHeaders.Get(Key)); requestHeaders.Set(Key, value2); Assert.AreEqual(value2, requestHeaders.Get(Key)); }