Test Prototype Source
Functions
-
TEST(PrototypePatternTest, CloneConcretePrototype1)
Test cloning functionality of ConcretePrototype1.
This test verifies that cloning a ConcretePrototype1 object creates an independent copy with the same attribute value.
-
TEST(PrototypePatternTest, CloneConcretePrototype2)
Test cloning functionality of ConcretePrototype2.
This test ensures that cloning a ConcretePrototype2 object produces an independent instance with the same attribute value.
-
TEST(PrototypePatternTest, CloneAndModifyPrototype)
Test modifying the cloned prototype.
This test verifies that modifying a cloned prototype does not affect the original object.
-
TEST(PrototypePatternTest, CloneMultipleInstances)
Test cloning and verifying independence for multiple clones.
This test ensures that multiple clones of the same prototype are independent of each other and the original object.