Test Memento Source
Functions
-
TEST(MementoPatternTest, SaveAndRestoreState)
Test the Memento pattern for saving and restoring state.
-
TEST(MementoPatternTest, CaretakerStoresMultipleMementos)
Test the Caretaker’s handling of multiple Mementos.
-
TEST(MementoPatternTest, InvalidMementoIndex)
Test the Caretaker’s exception handling for invalid indices.