//System Includes #include #include #include //Project Includes #include #include //External Includes #include //System Namespaces using std::string; using std::function; using std::shared_ptr; using std::invalid_argument; //Project Namespaces using restbed::Session; using restbed::Resource; //External Namespaces TEST_CASE( "validate invalid (empty) method argument", "[resource]" ) { Resource resource; const function< void ( const shared_ptr< Session > ) > callback; REQUIRE_THROWS_AS( resource.set_method_handler( "", callback ), invalid_argument ); }