5 #include "gtest/gtest-spi.h"
6 #include "gtest/gtest.h"
32 TEST(_GTestCbmHit, CheckDefaultConstructor) {
37 TEST(_GTestCbmHit, CheckStandardConstructor) {
42 TEST(_GTestCbmHit, CheckStandardConstructorWithTime) {
47 TEST(_GTestCbmHit, CheckCopyConstructor) {
50 SCOPED_TRACE(
"CheckCopyConstructor: Initial Test");
60 SCOPED_TRACE(
"CheckCopyConstructor: Test with CbmMatch");
68 CbmMatch* testMatch1 = test2.GetMatch();
70 EXPECT_EQ(
nullptr, testMatch1);
75 "CheckCopyConstructor: Test new object after copy construction");
81 "CheckCopyConstructor: Test original object after copy construction");
87 TEST(_GTestCbmHit, CheckAssignmentOperator) {
90 SCOPED_TRACE(
"CheckAssignmentOperator: Initial Test");
100 SCOPED_TRACE(
"CheckAssignmentOperator: Test with CbmMatch");
111 EXPECT_EQ(
nullptr, testMatch1);
115 SCOPED_TRACE(
"CheckAssignmentOperator: Test new object after assignment");
121 "CheckAssignmentOperator: Test original object after assignment");
126 TEST(_GTestCbmHit, TestSettersAndGetters) {
152 EXPECT_EQ(-1, retValInt);
168 EXPECT_STREQ(
"Has to be implemented in derrived class",
169 test.ToString().c_str());