SDOM - Simple SDL Document Object Model
A lightweight, extensible Document Object Model for SDL-based applications.
Loading...
Searching...
No Matches
SDOM::IUnitTest Interface Referenceabstract

Interface for unit testing objects in SDOM. More...

#include <SDOM_IUnitTest.hpp>

Inheritance diagram for SDOM::IUnitTest:
SDOM::IDataObject SDOM::AssetHandle SDOM::Core SDOM::DisplayHandle SDOM::Event SDOM::Factory SDOM::IAssetObject SDOM::IDisplayObject SDOM::IFontObject SDOM::SpriteSheet SDOM::TTFAsset SDOM::Texture SDOM::IPanelObject SDOM::IconButton SDOM::Label SDOM::Stage SDOM::TristateButton

Public Member Functions

virtual bool onUnitTest ()=0
 Runs unit tests for this object.
 

Detailed Description

Interface for unit testing objects in SDOM.

Provides a standardized method for running unit tests on objects that implement this interface. Classes implementing this interface should define the onUnitTest method to perform their specific tests.

Example usage:

class MyClass : public IUnitTest {
public:
bool onUnitTest() override {
// Implement test logic here
return true; // Return true if tests pass, false otherwise
}
};
Interface for unit testing objects in SDOM.
Definition SDOM_IUnitTest.hpp:31
Author
Jay Faries (warte67)
Date
2025-09-19

Member Function Documentation

◆ onUnitTest()

virtual bool SDOM::IUnitTest::onUnitTest ( )
pure virtual

The documentation for this interface was generated from the following file: