Example #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");
        }
Example #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);
        }