+
+void RegionTestCase::Intersect()
+{
+ const wxPoint points1[] = {
+ wxPoint(310, 392),
+ wxPoint(270, 392),
+ wxPoint(270, 421),
+ wxPoint(310, 421)
+ };
+
+ wxRegion region1(WXSIZEOF(points1), points1);
+
+ const wxPoint points2[] = {
+ wxPoint(54, 104),
+ wxPoint(85, 82),
+ wxPoint(68, 58),
+ wxPoint(37, 80)
+ };
+
+ wxRegion region2(4,points2);
+
+ CPPUNIT_ASSERT( region1.Intersect(region2) );
+ CPPUNIT_ASSERT( region1.IsEmpty() );
+}