public void Request_headers_dictionary_is_case_insensitive() { SetRequestPaths("http://localhost/", "/"); _httpRequest.Headers["Content-Type"] = "text/plain"; var app = new FakeApp("200 OK", "Hello World"); var appHandler = new AppHandler(app.AppDelegate); ProcessRequest(appHandler); Assert.That(app.Env["aspnet.HttpContextBase"], Is.SameAs(_httpContext)); var headers = new Environment(app.Env).Headers; Assert.That(headers.GetHeader("Content-Type"), Is.EqualTo("text/plain")); Assert.That(headers.GetHeader("CONTENT-TYPE"), Is.EqualTo("text/plain")); Assert.That(headers.Keys.ToArray().Contains("Content-Type"), Is.True); Assert.That(headers.Keys.ToArray().Contains("CONTENT-TYPE"), Is.False); }