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); }
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); }