diff options
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/ModuleFixture.cs')
-rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/ModuleFixture.cs | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/ModuleFixture.cs b/src/test/WixToolsetTest.CoreIntegration/ModuleFixture.cs index 349bad2c..17e91692 100644 --- a/src/test/WixToolsetTest.CoreIntegration/ModuleFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/ModuleFixture.cs | |||
@@ -46,19 +46,23 @@ namespace WixToolsetTest.CoreIntegration | |||
46 | WixAssert.CompareLineByLine(new[] | 46 | WixAssert.CompareLineByLine(new[] |
47 | { | 47 | { |
48 | "MergeRedirectFolder\tTARGETDIR\t.", | 48 | "MergeRedirectFolder\tTARGETDIR\t.", |
49 | "NotTheMergeRedirectFolder\tTARGETDIR\t.", | ||
49 | "TARGETDIR\t\tSourceDir" | 50 | "TARGETDIR\t\tSourceDir" |
50 | }, dirSymbols.Select(d => String.Join("\t", d.Id.Id, d.ParentDirectoryRef, d.Name)).ToArray()); | 51 | }, dirSymbols.Select(d => String.Join("\t", d.Id.Id, d.ParentDirectoryRef, d.Name)).ToArray()); |
51 | 52 | ||
52 | var fileSymbol = section.Symbols.OfType<FileSymbol>().Single(); | 53 | var fileSymbols = section.Symbols.OfType<FileSymbol>().OrderBy(d => d.Id.Id).ToList(); |
53 | Assert.Equal("filyIq8rqcxxf903Hsn5K9L0SWV73g", fileSymbol.Id.Id); | 54 | WixAssert.CompareLineByLine(new[] |
54 | Assert.Equal(Path.Combine(folder, @"data\test.txt"), fileSymbol[FileSymbolFields.Source].AsPath().Path); | 55 | { |
55 | Assert.Equal(@"test.txt", fileSymbol[FileSymbolFields.Source].PreviousValue.AsPath().Path); | 56 | $"File1\t{Path.Combine(folder, @"data\test.txt")}\ttest.txt", |
57 | $"File2\t{Path.Combine(folder, @"data\test.txt")}\ttest.txt", | ||
58 | }, fileSymbols.Select(fileSymbol => String.Join("\t", fileSymbol.Id.Id, fileSymbol[FileSymbolFields.Source].AsPath().Path, fileSymbol[FileSymbolFields.Source].PreviousValue.AsPath().Path)).ToArray()); | ||
56 | 59 | ||
57 | var data = WindowsInstallerData.Load(Path.Combine(intermediateFolder, @"bin\test.wixpdb")); | 60 | var data = WindowsInstallerData.Load(Path.Combine(intermediateFolder, @"bin\test.wixpdb")); |
58 | var fileRows = data.Tables["File"].Rows; | 61 | var fileRows = data.Tables["File"].Rows; |
59 | Assert.Equal(new[] | 62 | Assert.Equal(new[] |
60 | { | 63 | { |
61 | "filyIq8rqcxxf903Hsn5K9L0SWV73g.243FB739_4D05_472F_9CFB_EF6B1017B6DE" | 64 | "File1.243FB739_4D05_472F_9CFB_EF6B1017B6DE", |
65 | "File2.243FB739_4D05_472F_9CFB_EF6B1017B6DE", | ||
62 | }, fileRows.Select(r => r.FieldAsString(0)).ToArray()); | 66 | }, fileRows.Select(r => r.FieldAsString(0)).ToArray()); |
63 | 67 | ||
64 | var cabPath = Path.Combine(intermediateFolder, "msm-test.cab"); | 68 | var cabPath = Path.Combine(intermediateFolder, "msm-test.cab"); |
@@ -66,7 +70,8 @@ namespace WixToolsetTest.CoreIntegration | |||
66 | var files = Query.GetCabinetFiles(cabPath); | 70 | var files = Query.GetCabinetFiles(cabPath); |
67 | Assert.Equal(new[] | 71 | Assert.Equal(new[] |
68 | { | 72 | { |
69 | "filyIq8rqcxxf903Hsn5K9L0SWV73g.243FB739_4D05_472F_9CFB_EF6B1017B6DE" | 73 | "File1.243FB739_4D05_472F_9CFB_EF6B1017B6DE", |
74 | "File2.243FB739_4D05_472F_9CFB_EF6B1017B6DE", | ||
70 | }, files.Select(f => Path.Combine(f.Path, f.Name)).ToArray()); | 75 | }, files.Select(f => Path.Combine(f.Path, f.Name)).ToArray()); |
71 | } | 76 | } |
72 | } | 77 | } |