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.Collections.Generic;
9
namespace WixBinding.Tests.PackageFiles
12
/// Tests that no diff is shown in the IWixPackageFilesView via
13
/// the WixPackagesFileEditor
16
public class NoDiffShownTestFixture : PackageFilesTestFixtureBase
18
List<string> directories;
21
public void NoDirectorySelected()
24
directories = new List<string>();
25
editor.CalculateDiff();
26
Assert.IsTrue(view.IsNoDifferencesFoundMessageDisplayed);
27
Assert.AreEqual(1, directories.Count);
28
Assert.AreEqual(@"C:\Projects\Test\bin", directories[0]);
31
public override string[] GetFiles(string path)
33
directories.Add(path);
34
return new string[] {@"license.rtf"};
37
protected override string GetWixXml()
39
return "<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>\r\n" +
40
"\t<Product Name='Test' \r\n" +
41
"\t Version='1.0' \r\n" +
42
"\t Language='1013' \r\n" +
43
"\t Manufacturer='#develop' \r\n" +
44
"\t Id='????????-????-????-????-????????????'>\r\n" +
45
"\t\t<Package/>\r\n" +
46
"\t\t<Directory Id='TARGETDIR' SourceName='SourceDir'>\r\n" +
47
"\t\t\t<Directory Id='ProgramFilesFolder' Name='PFiles'>\r\n" +
48
"\t\t\t\t<Directory Id='INSTALLDIR' Name='YourApp' LongName='Your Application'>\r\n" +
49
"\t\t\t\t\t<Component Id='MyComponent' DiskId='1'>\r\n" +
50
"\t\t\t\t\t\t<File Id='LicenseFile' Name='license.rtf' Source='bin\\license.rtf' />\r\n" +
51
"\t\t\t\t\t</Component>\r\n" +
52
"\t\t\t\t</Directory>\r\n" +
53
"\t\t\t</Directory>\r\n" +
54
"\t\t</Directory>\r\n" +