1 //------------------------------------------------------------------------------ 2 // MessageOpAssignTest.cpp 3 // 4 //------------------------------------------------------------------------------ 5 6 // Standard Includes ----------------------------------------------------------- 7 8 // System Includes ------------------------------------------------------------- 9 #include <Message.h> 10 11 // Project Includes ------------------------------------------------------------ 12 13 // Local Includes -------------------------------------------------------------- 14 #include "MessageOpAssignTest.h" 15 16 // Local Defines --------------------------------------------------------------- 17 18 // Globals --------------------------------------------------------------------- 19 20 //------------------------------------------------------------------------------ 21 void TMessageOpAssignTest::MessageOpAssignTest1() 22 { 23 BMessage msg1(1234); 24 BMessage msg2; 25 msg2 = msg1; 26 CPPUNIT_ASSERT(msg2.what == msg1.what); 27 } 28 //------------------------------------------------------------------------------ 29 TestSuite* TMessageOpAssignTest::Suite() 30 { 31 TestSuite* suite = new TestSuite("BMessage::operator=(const BMessage&)"); 32 33 ADD_TEST4(BMessage, suite, TMessageOpAssignTest, MessageOpAssignTest1); 34 35 return suite; 36 } 37 //------------------------------------------------------------------------------ 38 39 /* 40 * $Log $ 41 * 42 * $Id $ 43 * 44 */ 45 46