Merge() 공개 메소드

Merges headers.
public Merge ( HeaderCollection headers ) : void
headers HeaderCollection Headers to be merged.
리턴 void
예제 #1
0
        public void it_should_merge_headers()
        {
            var headers1 = new HeaderCollection(new Header("test1"));
            var headers2 = new HeaderCollection(new Header("test2"));

            headers1.Merge(headers2);

            headers1.Should().ContainKey("test2");
        }
예제 #2
0
        public void it_should_do_nothing_when_no_headers_is_being_merged()
        {
            var headers = new HeaderCollection();

            headers.Merge(null);

            headers.Should().HaveCount(0);
        }