2 // GroupBoxTest.cs: Test cases for GroupBox.
5 // Ritvik Mayank (mritvik@novell.com)
7 // (C) 2005 Novell, Inc. (http://www.novell.com)
11 using System.Windows.Forms;
13 using System.Reflection;
14 using NUnit.Framework;
16 namespace MonoTests.System.Windows.Forms
19 public class GroupBoxTest
22 public void GroupBoxPropertyTest ()
24 Form myform = new Form ();
25 GroupBox mygrpbox = new GroupBox ();
26 RadioButton myradiobutton1 = new RadioButton ();
27 RadioButton myradiobutton2 = new RadioButton ();
28 mygrpbox.Controls.Add (myradiobutton1);
29 mygrpbox.Controls.Add (myradiobutton2);
31 Assert.AreEqual (FlatStyle.Standard, mygrpbox.FlatStyle, "#1");
32 mygrpbox.FlatStyle = FlatStyle.Popup;
33 Assert.AreEqual (FlatStyle.Popup, mygrpbox.FlatStyle, "#2");
34 mygrpbox.FlatStyle = FlatStyle.Flat;
35 Assert.AreEqual (FlatStyle.Flat, mygrpbox.FlatStyle, "#3");
36 mygrpbox.FlatStyle = FlatStyle.System;
37 Assert.AreEqual (FlatStyle.System, mygrpbox.FlatStyle, "#4");