diff --git a/tests/test_iworkspace_manager.cpp b/tests/test_iworkspace_manager.cpp index b186d51ca61c70170f5c2554392b5c5ad5f26b2b..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 --- a/tests/test_iworkspace_manager.cpp +++ b/tests/test_iworkspace_manager.cpp @@ -1,31 +0,0 @@ -#include "catch2/catch.hpp" -#include <tadah/core/memory/IWorkspaceManager.h> - -namespace tadah { -namespace core { -namespace memory { - -// A minimal concrete mock derived from IWorkspaceManager -class MockWorkspaceManager : public IWorkspaceManager { -public: - // Provide a virtual destructor, automatically calls base ~IWorkspaceManager() - ~MockWorkspaceManager() override = default; - // Implement any pure virtual methods if the interface has them - // For example: - // void somePureVirtualFunction() override { /* do nothing */ } -}; - -} // namespace memory -} // namespace core -} // namespace tadah - -TEST_CASE("IWorkspaceManager mock derived class", "[IWorkspaceManager]") -{ - using namespace tadah::core::memory; - - // We simply create and destroy a MockWorkspaceManager object. - // This confirms that ~IWorkspaceManager() is indeed callable and causes no errors. - MockWorkspaceManager mgr; - REQUIRE(true); // If we reach this line, construction & destruction work. -} -