⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 boardgametest.h

📁 这是国外的resip协议栈
💻 H
字号:
#ifndef __BOARDGAMETEST_H__#define __BOARDGAMETEST_H__#include <cppunit/extensions/HelperMacros.h>#include <cppunit/portability/Stream.h>template<class GAMECLASS> class BoardGameTest : public CPPUNIT_NS::TestFixture {  CPPUNIT_TEST_SUITE( BoardGameTest );  CPPUNIT_TEST( testReset );  CPPUNIT_TEST( testResetShouldFail );  CPPUNIT_TEST_SUITE_END();protected:  GAMECLASS	*m_game;  public:  BoardGameTest()  {  }  int countTestCases () const  {     return 1;   }    void setUp()   {     this->m_game = new GAMECLASS;   }    void tearDown()  {     delete this->m_game;   }    void testReset()   {     CPPUNIT_ASSERT( this->m_game->reset() );  }  void testResetShouldFail()   {     CPPUNIT_NS::stdCOut() << "The following test fails, this is intended:" << "\n";    CPPUNIT_ASSERT( !this->m_game->reset() );  }};#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -