-
Notifications
You must be signed in to change notification settings - Fork 0
/
GameStateTest.h
42 lines (37 loc) · 1.09 KB
/
GameStateTest.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef GAMESTATETEST_H
#define GAMESTATETEST_H
#include <cppunit/extensions/HelperMacros.h>
#include "TreeBuilder.h"
class GameStateTest : public CppUnit::TestFixture
{
CPPUNIT_TEST_SUITE( GameStateTest );
CPPUNIT_TEST( testGetPosition );
CPPUNIT_TEST( testArrayIndex );
CPPUNIT_TEST( testIntraCharIdx );
CPPUNIT_TEST( testPieceBits );
CPPUNIT_TEST( testByteOffset );
CPPUNIT_TEST( testByteIndex );
CPPUNIT_TEST( testSetValue );
CPPUNIT_TEST( testSetGameState );
CPPUNIT_TEST( testColumnHeightsEmpty );
CPPUNIT_TEST( testColumnHeightsAcending );
CPPUNIT_TEST( testColumnHeightsFullColumn );
CPPUNIT_TEST_SUITE_END();
public:
void setUp();
void tearDown();
void testGetPosition();
void testArrayIndex();
void testIntraCharIdx();
void testPieceBits();
void testByteOffset();
void testByteIndex();
void testSetValue();
void testSetGameState();
void testColumnHeightsEmpty();
void testColumnHeightsAcending();
void testColumnHeightsFullColumn();
private:
GameState* mpGameState;
};
#endif // GAMESTATETEST_H