public void When_creating_any_request_adding_a_header_then_get_headers_contains_added_header() { var sut = new MyRequest(); sut.AddHeader("test", "test"); Assert.NotNull(sut.GetHeaders().FirstOrDefault(h => h.Key == "test")); }
public void When_creating_any_request_then_get_headers_never_returns_null() { var sut = new MyRequest(); Assert.NotNull(sut.GetHeaders()); }