📄 exceptiontest.h
字号:
#ifndef EXCEPTIONTEST_H#define EXCEPTIONTEST_H#include <cppunit/extensions/HelperMacros.h>class ExceptionTest : public CPPUNIT_NS::TestFixture{ CPPUNIT_TEST_SUITE( ExceptionTest ); CPPUNIT_TEST( testConstructor ); CPPUNIT_TEST( testDefaultConstructor ); CPPUNIT_TEST( testCopyConstructor ); CPPUNIT_TEST( testAssignment ); CPPUNIT_TEST( testClone ); CPPUNIT_TEST_SUITE_END();public: ExceptionTest(); virtual ~ExceptionTest(); virtual void setUp(); virtual void tearDown(); void testConstructor(); void testDefaultConstructor(); void testCopyConstructor(); void testAssignment(); void testClone();private: ExceptionTest( const ExceptionTest © ); void operator =( const ExceptionTest © ); void checkIsSame( CPPUNIT_NS::Exception &e, CPPUNIT_NS::Exception &other );private:};#endif // EXCEPTIONTEST_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -