public void ThrowsExceptionWhenCustomHeaderNameIsInvalid(string customHeaderName, Type exceptionType) { Assert.Throws(exceptionType, () => new FakeCustomHeaderHttpMessageHandler(customHeaderName)); }