// // // // // $Revision$ // 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 "\r\n" + "\t\r\n" + "\t\t\r\n" + "\t\t\t\r\n" + "\t\t\t\t\r\n" + "\t\t\t\r\n" + "\t\t\t\r\n" + "\t\t\t\r\n" + "\t\t\r\n" + "\t\r\n" + ""; } } }