1 #include "UnitTest.h" 2 #include "Gwen/Controls/ImagePanel.h" 3 4 using namespace Gwen; 5 6 class ImagePanel : public GUnit 7 { 8 public: GWEN_CONTROL_INLINE(ImagePanel,GUnit)9 GWEN_CONTROL_INLINE(ImagePanel, GUnit) 10 { 11 // Normal 12 { 13 Controls::ImagePanel* img = new Controls::ImagePanel(this); 14 img->SetImage(L"gwen.png"); 15 img->SetBounds(10, 10, 100, 100); 16 } 17 18 // Missing 19 { 20 Controls::ImagePanel* img = new Controls::ImagePanel(this); 21 img->SetImage(L"missingimage.png"); 22 img->SetBounds(120, 10, 100, 100); 23 } 24 } 25 }; 26 27 DEFINE_UNIT_TEST(ImagePanel, L"ImagePanel");