mirror of
https://github.com/thunderbrewhq/common.git
synced 2025-12-12 19:22:30 +00:00
15 lines
368 B
C++
15 lines
368 B
C++
#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);
|
|
}
|
|
}
|