Added a test with a tiny bit of meaning (cribbed from wxWidgets tests).

This commit is contained in:
Joseph Lenox 2018-06-21 23:05:33 -05:00 committed by Joseph Lenox
parent 0838fbb73d
commit 464f696f9e

View File

@ -7,5 +7,20 @@
#include "testableframe.h"
TEST_CASE( "Dummy" ) {
SCENARIO( "checkboxes return true when checked.", "[checkbox]" ) {
GIVEN( "A checkbox item") {
wxCheckBox* m_check = new wxCheckBox(wxTheApp->GetTopWindow(), wxID_ANY, "Check box");
WHEN ( "the box is checked") {
m_check->SetValue(true);
THEN ( "the checkbox reads true") {
REQUIRE(m_check->IsChecked() == true);
}
}
WHEN ( "the box is not checked") {
m_check->SetValue(false);
THEN ( "the checkbox reads false") {
REQUIRE(m_check->IsChecked() == false);
}
}
}
}