public void no_operation_gets_selected() { given_filter(); given_operations(); when_filtering_operations(); FilteredOperations.ShouldBeEmpty(); }
public void an_error_is_collected_if_codec_raises_an_error() { given_filter(); given_operations(); given_operation_has_codec_match <XmlDataContractCodec>("PostName", MediaType.Xml, 1.0f); given_request_entity_body(new byte[] { 0 }); when_filtering_operations(); FilteredOperations.ShouldBeEmpty(); Errors.Errors.ShouldHaveCountOf(1); }