diff --git a/test/Graphics/Texture.test.cpp b/test/Graphics/Texture.test.cpp index c48fbcd42..a4b1da83c 100644 --- a/test/Graphics/Texture.test.cpp +++ b/test/Graphics/Texture.test.cpp @@ -1,5 +1,8 @@ #include +#include + +#include #include static_assert(std::is_copy_constructible_v); @@ -8,3 +11,16 @@ static_assert(std::is_move_constructible_v); static_assert(!std::is_nothrow_move_constructible_v); static_assert(std::is_move_assignable_v); static_assert(!std::is_nothrow_move_assignable_v); + +TEST_CASE("[Graphics] sf::Texture") +{ + SUBCASE("Construction") + { + sf::Texture texture; + CHECK(texture.getSize() == sf::Vector2u()); + CHECK(!texture.isSmooth()); + CHECK(!texture.isSrgb()); + CHECK(!texture.isRepeated()); + CHECK(texture.getNativeHandle() == 0); + } +}