]> git.saurik.com Git - wxWidgets.git/blob - tests/controls/pickerbasetest.h
Fix bug in wxNumberFormatter::ToString() for negative numbers.
[wxWidgets.git] / tests / controls / pickerbasetest.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: tests/controls/pickerbasetest.cpp
3 // Purpose: wxPickerBase unit test
4 // Author: Steven Lamerton
5 // Created: 2010-08-07
6 // RCS-ID: $Id$
7 // Copyright: (c) 2010 Steven Lamerton
8 ///////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_TESTS_CONTROLS_PICKERBASETEST_H_
11 #define _WX_TESTS_CONTROLS_PICKERBASETEST_H_
12
13 class PickerBaseTestCase
14 {
15 public:
16 PickerBaseTestCase() { }
17 virtual ~PickerBaseTestCase() { }
18
19 protected:
20 // this function must be overridden by the derived classes to return the
21 // text entry object we're testing, typically this is done by creating a
22 // control implementing wxPickerBase interface in setUp() virtual method and
23 // just returning it from here
24 virtual wxPickerBase *GetBase() const = 0;
25
26 // this should be inserted in the derived class CPPUNIT_TEST_SUITE
27 // definition to run all wxPickerBase tests as part of it
28 #define wxPICKER_BASE_TESTS() \
29 CPPUNIT_TEST( Margin ); \
30 CPPUNIT_TEST( Proportion ); \
31 CPPUNIT_TEST( Growable ); \
32 CPPUNIT_TEST( Controls )
33
34 void Margin();
35 void Proportion();
36 void Growable();
37 void Controls();
38
39 private:
40 wxDECLARE_NO_COPY_CLASS(PickerBaseTestCase);
41 };
42
43 #endif // _WX_TESTS_CONTROLS_PICKERBASETEST_H_