/// Tests the SetFontSetting Function /// @return True if all tests were executed, false if not bool FontSettingTestSuite::TestCaseSetFontSetting() { //------Last Checked------// // - Dec 6, 2004 FontSetting fontSetting; TEST(wxT("SetFontSetting - NULL facename"), !fontSetting.SetFontSetting(NULL, 12, FontSetting::weightBold, true, true, true, wxColor(255,0,0))); TEST(wxT("SetFontSetting - invalid point size"), !fontSetting.SetFontSetting(wxT("Arial"), 0, FontSetting::weightBold, true, true, true, wxColor(255,0,0))); TEST(wxT("SetFontSetting - invalid weight"), !fontSetting.SetFontSetting(wxT("Arial"), 12, 139, true, true, true, wxColor(255,0,0))); TEST(wxT("SetFontSetting - valid"), fontSetting.SetFontSetting(wxT("Arial"), 12, FontSetting::weightBold, true, true, true, wxColor(255,0,0)) && (fontSetting.GetFaceName() == wxT("Arial")) && (fontSetting.GetPointSize() == 12) && (fontSetting.GetWeight() == FontSetting::weightBold) && (fontSetting.IsItalic()) && (fontSetting.IsUnderline()) && (fontSetting.IsStrikeOut()) && (fontSetting.GetColor() == wxColor(255,0,0)) ); return (true); }