Add a PromotionManager.
[tagua/yd.git] / tests / variants / chesslegalitytest.h
blob144603e61b23fab9dfdf108b43f727e732f2a546
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 IValidator;
12 class Variant;
14 class ChessLegalityTest : public CppUnit::TestFixture {
15 CPPUNIT_TEST_SUITE(ChessLegalityTest);
16 CPPUNIT_TEST(test_movements);
17 CPPUNIT_TEST(test_pseudolegal);
18 CPPUNIT_TEST(test_simple_move);
19 CPPUNIT_TEST(test_promotion);
20 CPPUNIT_TEST(test_en_passant);
21 CPPUNIT_TEST(test_castling);
22 CPPUNIT_TEST(test_attack1);
23 CPPUNIT_TEST(test_attack2);
24 CPPUNIT_TEST(test_attack3);
25 CPPUNIT_TEST(test_attack4);
26 CPPUNIT_TEST_SUITE_END();
27 private:
28 Variant* m_chess;
29 IDefaultState* m_state;
30 IValidator* m_validator;
31 public:
32 void setUp();
33 void tearDown();
35 void test_movements();
36 void test_pseudolegal();
37 void test_simple_move();
38 void test_promotion();
39 void test_en_passant();
40 void test_castling();
41 void test_attack1();
42 void test_attack2();
43 void test_attack3();
44 void test_attack4();
47 #endif // CHESSGAMESTATETEST_H