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)
4
using ICSharpCode.WixBinding;
7
using System.Windows.Forms;
9
namespace WixBinding.Tests.DialogXmlGeneration
12
/// Tests the WixDialog.GetControlTypeName method.
15
public class GetControlTypesTests
18
public void ButtonType()
20
Assert.AreEqual("PushButton", WixDialog.GetControlTypeName(typeof(Button)));
24
public void TextBoxType()
26
Assert.AreEqual("Edit", WixDialog.GetControlTypeName(typeof(TextBox)));
30
public void LabelType()
32
Assert.AreEqual("Text", WixDialog.GetControlTypeName(typeof(Label)));
36
public void CheckBoxType()
38
Assert.AreEqual("CheckBox", WixDialog.GetControlTypeName(typeof(CheckBox)));
42
public void RichTextBoxType()
44
Assert.AreEqual("ScrollableText", WixDialog.GetControlTypeName(typeof(RichTextBox)));
48
public void ComboBoxType()
50
Assert.AreEqual("ComboBox", WixDialog.GetControlTypeName(typeof(ComboBox)));
54
public void GroupBoxType()
56
Assert.AreEqual("GroupBox", WixDialog.GetControlTypeName(typeof(GroupBox)));
60
public void ListBoxType()
62
Assert.AreEqual("ListBox", WixDialog.GetControlTypeName(typeof(ListBox)));
66
public void ListViewType()
68
Assert.AreEqual("ListView", WixDialog.GetControlTypeName(typeof(ListView)));
72
public void ProgressBarType()
74
Assert.AreEqual("ProgressBar", WixDialog.GetControlTypeName(typeof(ProgressBar)));
78
public void MaskedTextBoxType()
80
Assert.AreEqual("MaskedEdit", WixDialog.GetControlTypeName(typeof(MaskedTextBox)));
84
public void TreeViewType()
86
Assert.AreEqual("SelectionTree", WixDialog.GetControlTypeName(typeof(TreeView)));
90
public void PictureBoxType()
92
Assert.AreEqual("Bitmap", WixDialog.GetControlTypeName(typeof(PictureBox)));
96
public void RadioButtonGroupType()
98
Assert.AreEqual("RadioButtonGroup", WixDialog.GetControlTypeName(typeof(RadioButtonGroupBox)));