예제 #1
0
            public void WhenAddIsUsedAndNameIsTheSameThenCountDoesNotIncrease()
            {
                var headers = new HttpConnectHeaders();

                headers.Add("name-1", "value-1");
                headers.Add("name-1", "value-1");
                headers.Add("name-1", "value-1");
                headers.Add("name-1", "value-1");
                headers.Add("name-1", "value-1");

                headers.Should().HaveCount(1);
            }
예제 #2
0
            public void WhenAddIsUsedThenCountIncreases()
            {
                var headers = new HttpConnectHeaders();

                headers.Add("name-1", "value-1");
                headers.Add("name-2", "value-2");
                headers.Add("name-3", "value-3");
                headers.Add("name-4", "value-4");
                headers.Add("name-5", "value-5");

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