Add a PromotionManager.
[tagua/yd.git] / tests / variants / chessgamestatetest.h
blobb5f4ce42268fda29b28cdff942c5e11e4b68f2c5
1 #ifndef CHESSGAMESTATETEST_H
2 #define CHESSGAMESTATETEST_H
4 #include <cppunit/extensions/HelperMacros.h>
5 #include <cppunit/TestCaller.h>
6 #include <cppunit/TestResult.h>
7 #include <cppunit/TestFixture.h>
8 #include <cppunit/TestAssert.h>
10 class IDefaultState;
11 class Variant;
13 class ChessGameStateTest : public CppUnit::TestFixture {
14 CPPUNIT_TEST_SUITE(ChessGameStateTest);
15 CPPUNIT_TEST(test_setup);
16 CPPUNIT_TEST(test_simple_move);
17 CPPUNIT_TEST(test_capture);
18 CPPUNIT_TEST(test_en_passant);
19 CPPUNIT_TEST(test_kingside_castling);
20 CPPUNIT_TEST(test_queenside_castling);
21 CPPUNIT_TEST(test_promotion);
22 CPPUNIT_TEST_SUITE_END();
23 private:
24 Variant* m_chess;
25 IDefaultState* m_state;
26 public:
27 void setUp();
28 void tearDown();
30 void test_setup();
31 void test_simple_move();
32 void test_capture();
33 void test_en_passant();
34 void test_kingside_castling();
35 void test_queenside_castling();
36 void test_promotion();
39 #endif // CHESSGAMESTATETEST_H