+void SetSizeTestCase::BestSize()
+{
+ CPPUNIT_ASSERT_EQUAL( wxSize(50, 250), m_win->GetBestSize() );
+
+ m_win->SetMinSize(wxSize(100, 100));
+ CPPUNIT_ASSERT_EQUAL( wxSize(100, 250), m_win->GetBestSize() );
+
+ m_win->SetMaxSize(wxSize(200, 200));
+ CPPUNIT_ASSERT_EQUAL( wxSize(100, 200), m_win->GetBestSize() );
+}