~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/AddIns/BackendBindings/WixBinding/Test/DialogXmlGeneration/GetControlTypeTests.cs

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
 
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
 
3
 
 
4
using ICSharpCode.WixBinding;
 
5
using NUnit.Framework;
 
6
using System;
 
7
using System.Windows.Forms;
 
8
 
 
9
namespace WixBinding.Tests.DialogXmlGeneration
 
10
{
 
11
        /// <summary>
 
12
        /// Tests the WixDialog.GetControlTypeName method.
 
13
        /// </summary>
 
14
        [TestFixture]
 
15
        public class GetControlTypesTests
 
16
        {
 
17
                [Test]
 
18
                public void ButtonType()
 
19
                {
 
20
                        Assert.AreEqual("PushButton", WixDialog.GetControlTypeName(typeof(Button)));
 
21
                }
 
22
                
 
23
                [Test]
 
24
                public void TextBoxType()
 
25
                {
 
26
                        Assert.AreEqual("Edit", WixDialog.GetControlTypeName(typeof(TextBox)));
 
27
                }
 
28
                
 
29
                [Test]
 
30
                public void LabelType()
 
31
                {
 
32
                        Assert.AreEqual("Text", WixDialog.GetControlTypeName(typeof(Label)));
 
33
                }
 
34
                                
 
35
                [Test]
 
36
                public void CheckBoxType()
 
37
                {
 
38
                        Assert.AreEqual("CheckBox", WixDialog.GetControlTypeName(typeof(CheckBox)));
 
39
                }
 
40
                
 
41
                [Test]
 
42
                public void RichTextBoxType()
 
43
                {
 
44
                        Assert.AreEqual("ScrollableText", WixDialog.GetControlTypeName(typeof(RichTextBox)));
 
45
                }
 
46
                
 
47
                [Test]
 
48
                public void ComboBoxType()
 
49
                {
 
50
                        Assert.AreEqual("ComboBox", WixDialog.GetControlTypeName(typeof(ComboBox)));
 
51
                }
 
52
                
 
53
                [Test]
 
54
                public void GroupBoxType()
 
55
                {
 
56
                        Assert.AreEqual("GroupBox", WixDialog.GetControlTypeName(typeof(GroupBox)));
 
57
                }
 
58
                
 
59
                [Test]
 
60
                public void ListBoxType()
 
61
                {
 
62
                        Assert.AreEqual("ListBox", WixDialog.GetControlTypeName(typeof(ListBox)));
 
63
                }
 
64
 
 
65
                [Test]
 
66
                public void ListViewType()
 
67
                {
 
68
                        Assert.AreEqual("ListView", WixDialog.GetControlTypeName(typeof(ListView)));
 
69
                }
 
70
                
 
71
                [Test]
 
72
                public void ProgressBarType()
 
73
                {
 
74
                        Assert.AreEqual("ProgressBar", WixDialog.GetControlTypeName(typeof(ProgressBar)));
 
75
                }
 
76
                
 
77
                [Test]
 
78
                public void MaskedTextBoxType()
 
79
                {
 
80
                        Assert.AreEqual("MaskedEdit", WixDialog.GetControlTypeName(typeof(MaskedTextBox)));
 
81
                }
 
82
                
 
83
                [Test]
 
84
                public void TreeViewType()
 
85
                {
 
86
                        Assert.AreEqual("SelectionTree", WixDialog.GetControlTypeName(typeof(TreeView)));
 
87
                }
 
88
                
 
89
                [Test]
 
90
                public void PictureBoxType()
 
91
                {
 
92
                        Assert.AreEqual("Bitmap", WixDialog.GetControlTypeName(typeof(PictureBox)));
 
93
                }
 
94
                
 
95
                [Test]
 
96
                public void RadioButtonGroupType()
 
97
                {
 
98
                        Assert.AreEqual("RadioButtonGroup", WixDialog.GetControlTypeName(typeof(RadioButtonGroupBox)));
 
99
                }
 
100
        }
 
101
}