common/test/Handle.cpp

16 lines
368 B
C++
Raw Permalink Normal View History

2023-01-01 20:59:41 -06:00
#include "common/Handle.hpp"
#include "test/Test.hpp"
class TestHandleObject : public CHandleObject {};
TEST_CASE("HandleCreate", "[handle]") {
SECTION("returns handle for subclass of CHandleObject") {
auto testObject = new TestHandleObject();
auto handle = HandleCreate(testObject);
CHECK(handle);
HandleClose(handle);
}
}