You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.4 KiB
52 lines
1.4 KiB
// <file> |
|
// <copyright see="prj:///doc/copyright.txt"/> |
|
// <license see="prj:///doc/license.txt"/> |
|
// <owner name="Matthew Ward" email="mrward@users.sourceforge.net"/> |
|
// <version>$Revision$</version> |
|
// </file> |
|
|
|
using ICSharpCode.WixBinding; |
|
using NUnit.Framework; |
|
using System; |
|
using System.Drawing; |
|
using System.Windows.Forms; |
|
using System.Xml; |
|
using WixBinding; |
|
using WixBinding.Tests.Utils; |
|
|
|
namespace WixBinding.Tests.DialogXmlGeneration |
|
{ |
|
[TestFixture] |
|
public class ComboBoxPropertyWithSpecialXmlCharsTestFixture : DialogLoadingTestFixtureBase |
|
{ |
|
[Test] |
|
public void UpdateDialogElement() |
|
{ |
|
WixDocument doc = new WixDocument(); |
|
doc.LoadXml(GetWixXml()); |
|
CreatedComponents.Clear(); |
|
WixDialog wixDialog = doc.GetDialog("WelcomeDialog"); |
|
using (Form dialog = wixDialog.CreateDialog(this)) { |
|
XmlElement dialogElement = wixDialog.UpdateDialogElement(dialog); |
|
} |
|
} |
|
|
|
|
|
string GetWixXml() |
|
{ |
|
return "<Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi'>\r\n" + |
|
"\t<Fragment>\r\n" + |
|
"\t\t<UI>\r\n" + |
|
"\t\t\t<Dialog Id='WelcomeDialog' Height='270' Width='370'>\r\n" + |
|
"\t\t\t\t<Control Id='ComboBox1' Type='ComboBox' X='20' Y='187' Width='330' Height='40' Property=\"ComboBox'Property\"/>\r\n" + |
|
"\t\t\t</Dialog>\r\n" + |
|
"\t\t\t<ComboBox Property=\"ComboBox'Property\">\r\n" + |
|
"\t\t\t</ComboBox>\r\n" + |
|
"\t\t</UI>\r\n" + |
|
"\t</Fragment>\r\n" + |
|
"</Wix>"; |
|
} |
|
} |
|
} |
|
|
|
|
|
|