public void GetEnumerator_NoValues_EmptyEnumerator() { MockHeaders headers = new MockHeaders(); HttpHeaderValueCollection <Uri> collection = new HttpHeaderValueCollection <Uri>(knownUriHeader, headers); IEnumerator <Uri> enumerator = collection.GetEnumerator(); Assert.False(enumerator.MoveNext(), "No items expected in enumerator."); }
public void GetEnumerator_NoValues_EmptyEnumerator() { MockHeaders headers = new MockHeaders(knownHeader, new MockHeaderParser(typeof(Uri))); HttpHeaderValueCollection<Uri> collection = new HttpHeaderValueCollection<Uri>(knownHeader, headers); IEnumerator<Uri> enumerator = collection.GetEnumerator(); Assert.False(enumerator.MoveNext(), "No items expected in enumerator."); }