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;
10
namespace WixBinding.Tests.Document
13
/// Tests that the only a directory with an Id of TARGETDIR is detected as
14
/// the root directory in a wix file.
17
public class NonRootDirectoryTestFixture
22
public void SetUpFixture()
24
WixDocument doc = new WixDocument();
25
doc.LoadXml(GetWixXml());
26
directory = doc.GetRootDirectory();
30
public void NoRootDirectoryFound()
32
Assert.IsNull(directory);
37
return "<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>\r\n" +
38
"\t<Product Name='DialogTest' \r\n" +
39
"\t Version='1.0' \r\n" +
40
"\t Language='1013' \r\n" +
41
"\t Manufacturer='#develop' \r\n" +
42
"\t Id='????????-????-????-????-????????????'>\r\n" +
43
"\t\t<Package/>\r\n" +
44
"\t\t<Directory Id=\"TESTDIR\" SourceName=\"SourceDir\">\r\n" +
45
"\t\t</Directory>\r\n" +