fileserver/lib/restbed-4.8/test/unit/source/resource_suite.cpp

28 lines
540 B
C++
Raw Normal View History

//System Includes
#include <memory>
//Project Includes
#include <corvusoft/restbed/resource.hpp>
//External Includes
#include <catch.hpp>
//System Namespaces
//Project Namespaces
using restbed::Resource;
//External Namespaces
TEST_CASE( "confirm default constructor throws no exceptions", "[resource]" )
{
REQUIRE_NOTHROW( std::unique_ptr<Resource> (new Resource) );
}
TEST_CASE( "confirm default destructor throws no exceptions", "[resource]" )
{
auto resource = new Resource;
REQUIRE_NOTHROW( delete resource );
}