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;
10
using WixBinding.Tests.Utils;
12
namespace WixBinding.Tests.DialogLoading
15
/// Tests the dialog title is correctly set in the form created by the
16
/// WixDesignerLoader.
19
public class DialogTitleTestFixture
24
public void SetUpFixture()
26
WixDocument doc = new WixDocument();
27
doc.LoadXml(GetWixXml());
28
WixDialog wixDialog = doc.CreateWixDialog("WelcomeDialog", new MockTextFileReader());
29
using (Form dialog = wixDialog.CreateDialog()) {
30
dialogTitle = dialog.Text;
37
Assert.AreEqual("Welcome Dialog Title", dialogTitle);
42
return "<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>\r\n" +
45
"\t\t\t<Dialog Id='WelcomeDialog' Title='Welcome Dialog Title' Height='100' Width='200'/>\r\n" +