public void get_the_requested_mime_type_if_content_type_is_simple() { var request = new CurrentRequest() { ContentType = "text/xml" }; request.RequestedMimeType().ShouldEqual("text/xml"); }
public void get_the_requested_mime_type_if_the_content_type_has_the_charset_as_well() { var request = new CurrentRequest() { ContentType = "text/xml; charset something or other" }; request.RequestedMimeType().ShouldEqual("text/xml"); }
public void get_the_requested_mime_type_if_content_type_is_null() { var request = new CurrentRequest(); request.RequestedMimeType().ShouldBeEmpty(); }