📄 exampletestcase.h
字号:
#ifndef CPP_UNIT_EXAMPLETESTCASE_H#define CPP_UNIT_EXAMPLETESTCASE_H#include <cppunit/extensions/HelperMacros.h>/* * A test case that is designed to produce * example errors and failures * */class ExampleTestCase : public CPPUNIT_NS::TestFixture{ CPPUNIT_TEST_SUITE( ExampleTestCase ); CPPUNIT_TEST( example ); CPPUNIT_TEST( anotherExample ); CPPUNIT_TEST( testAdd ); CPPUNIT_TEST( testEquals ); CPPUNIT_TEST_SUITE_END();protected: double m_value1; double m_value2;public: void setUp ();protected: void example (); void anotherExample (); void testAdd (); void testEquals ();};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -