Permalink
Browse files

Fix for test broken during prior commit rebase.

  • Loading branch information...
1 parent 1dcec5d commit 2d768a9e8085c7eec666213b66508ad37717ade6 @bradwilson bradwilson committed Apr 5, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 test/System.Web.Http.Test/HttpRequestMessageExtensionsTest.cs
@@ -225,6 +225,10 @@ public void CreateResponse_MatchingMediaType_WhenMediaTypeStringIsInvalidFormat_
[Fact]
public void CreateResponse_MatchingMediaType_WhenRequestDoesNotHaveConfiguration_Throws()
{
+ // Arrange
+ _request.Properties[HttpPropertyKeys.HttpConfigurationKey] = null;
+
+ // Act
Assert.Throws<InvalidOperationException>(() => _request.CreateResponse(HttpStatusCode.OK, _value, mediaType: "foo/bar"),
"The request does not have an associated configuration object or the provided configuration was null.");
}

0 comments on commit 2d768a9

Please sign in to comment.