Exemplo n.º 1
0
        public void ChangingCopyOfHeaderCollectionShouldNotChangeOriginal()
        {
            var original = new HeaderCollection();
            var copy     = original.Copy();

            copy.SetHeader("Fake", "Value");
            copy.HeaderNames.Should().Contain("Fake");
            original.HeaderNames.Should().BeEmpty();
        }