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 myform.ShowInTaskbar = false;
26 GroupBox mygrpbox = new GroupBox ();
27 RadioButton myradiobutton1 = new RadioButton ();
28 RadioButton myradiobutton2 = new RadioButton ();
29 mygrpbox.Controls.Add (myradiobutton1);
30 mygrpbox.Controls.Add (myradiobutton2);
32 Assert.AreEqual (FlatStyle.Standard, mygrpbox.FlatStyle, "#1");
33 mygrpbox.FlatStyle = FlatStyle.Popup;
34 Assert.AreEqual (FlatStyle.Popup, mygrpbox.FlatStyle, "#2");
35 mygrpbox.FlatStyle = FlatStyle.Flat;
36 Assert.AreEqual (FlatStyle.Flat, mygrpbox.FlatStyle, "#3");
37 mygrpbox.FlatStyle = FlatStyle.System;
38 Assert.AreEqual (FlatStyle.System, mygrpbox.FlatStyle, "#4");