diff --git a/src/test/GUI/test_field_checkbox.cpp b/src/test/GUI/test_field_checkbox.cpp index 5453ee270..3818bb9ba 100644 --- a/src/test/GUI/test_field_checkbox.cpp +++ b/src/test/GUI/test_field_checkbox.cpp @@ -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); + } + } + } }