remove some layout/rendering specific asserts, and fix the RowCount property in TabCo...
[mono.git] / mcs / class / Managed.Windows.Forms / Test / System.Windows.Forms / CheckBoxTest.cs
1 //
2 // Copyright (c) 2005 Novell, Inc.
3 //
4 // Authors:
5 //              Ritvik Mayank (mritvik@novell.com)
6 //
7
8 using System;
9 using System.Collections;
10 using System.Windows.Forms;
11 using System.Drawing;
12 using System.Reflection;
13 using NUnit.Framework;
14 using System.Threading;
15
16 namespace MonoTests.System.Windows.Forms
17 {
18         [TestFixture]
19         public class CheckBoxTest
20         {
21                 [Test]
22                 public void CheckBoxPropertyTest () 
23                 {
24                         Form myform = new Form ();
25                         myform.ShowInTaskbar = false;
26                         CheckBox mychkbox = new CheckBox(); 
27                         myform.Controls.Add (mychkbox);
28                         Assert.AreEqual (Appearance.Normal, mychkbox.Appearance, "#1");
29                         mychkbox.Appearance = Appearance.Button;
30                         Assert.AreEqual (Appearance.Button, mychkbox.Appearance, "#2");
31                         Assert.AreEqual (true, mychkbox.AutoCheck, "#3");
32                         mychkbox.AutoCheck = false;
33                         Assert.AreEqual (false, mychkbox.AutoCheck, "#4");
34                         Assert.AreEqual (false, mychkbox.Checked, "#5");
35                         Assert.AreEqual (CheckState.Unchecked, mychkbox.CheckState, "#6");
36                         Assert.AreEqual (ContentAlignment.MiddleLeft, mychkbox.CheckAlign, "#7");
37                         Assert.AreEqual (ContentAlignment.MiddleLeft, mychkbox.TextAlign, "#8");
38                         Assert.AreEqual (false, mychkbox.ThreeState, "#9");
39                         myform.Dispose();
40                 }
41         }
42 }