diff options
| author | Rob Mensching <rob@firegiant.com> | 2017-12-06 11:40:44 -0800 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2017-12-06 11:40:44 -0800 |
| commit | b1e662bd480241ea914f0f3d6bd174d9ffd03f5f (patch) | |
| tree | aeaaca9fa9054006e5c190b7256bb57f1ff342b6 /src/test/WixToolsetTest.CoreIntegration/ProgramFixture.cs | |
| parent | 5ba862bfa618c89a563d555e8ce7b44a904df406 (diff) | |
| download | wix-b1e662bd480241ea914f0f3d6bd174d9ffd03f5f.tar.gz wix-b1e662bd480241ea914f0f3d6bd174d9ffd03f5f.tar.bz2 wix-b1e662bd480241ea914f0f3d6bd174d9ffd03f5f.zip | |
Fix cab creation using explicit Media element
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/ProgramFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/ProgramFixture.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/ProgramFixture.cs b/src/test/WixToolsetTest.CoreIntegration/ProgramFixture.cs index 6644fd33..d99f53ec 100644 --- a/src/test/WixToolsetTest.CoreIntegration/ProgramFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/ProgramFixture.cs | |||
| @@ -40,9 +40,9 @@ namespace WixToolsetTest.CoreIntegration | |||
| 40 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\MsiPackage\test.txt"))); | 40 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\MsiPackage\test.txt"))); |
| 41 | 41 | ||
| 42 | var intermediate = Intermediate.Load(Path.Combine(intermediateFolder, @"bin\test.wir")); | 42 | var intermediate = Intermediate.Load(Path.Combine(intermediateFolder, @"bin\test.wir")); |
| 43 | Assert.Single(intermediate.Sections); | 43 | var section = intermediate.Sections.Single(); |
| 44 | 44 | ||
| 45 | var wixFile = intermediate.Sections.SelectMany(s => s.Tuples).OfType<WixFileTuple>().Single(); | 45 | var wixFile = section.Tuples.OfType<WixFileTuple>().Single(); |
| 46 | Assert.Equal(Path.Combine(folder, @"data\test.txt"), wixFile[WixFileTupleFields.Source].AsPath().Path); | 46 | Assert.Equal(Path.Combine(folder, @"data\test.txt"), wixFile[WixFileTupleFields.Source].AsPath().Path); |
| 47 | Assert.Equal(@"test.txt", wixFile[WixFileTupleFields.Source].PreviousValue.AsPath().Path); | 47 | Assert.Equal(@"test.txt", wixFile[WixFileTupleFields.Source].PreviousValue.AsPath().Path); |
| 48 | } | 48 | } |
| @@ -72,13 +72,13 @@ namespace WixToolsetTest.CoreIntegration | |||
| 72 | Assert.Equal(0, result); | 72 | Assert.Equal(0, result); |
| 73 | 73 | ||
| 74 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\test.msi"))); | 74 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\test.msi"))); |
| 75 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\example.cab"))); | ||
| 75 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\test.wixpdb"))); | 76 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\test.wixpdb"))); |
| 76 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\MsiPackage\test.txt"))); | ||
| 77 | 77 | ||
| 78 | var intermediate = Intermediate.Load(Path.Combine(intermediateFolder, @"bin\test.wir")); | 78 | var intermediate = Intermediate.Load(Path.Combine(intermediateFolder, @"bin\test.wir")); |
| 79 | Assert.Single(intermediate.Sections); | 79 | var section = intermediate.Sections.Single(); |
| 80 | 80 | ||
| 81 | var wixFile = intermediate.Sections.SelectMany(s => s.Tuples).OfType<WixFileTuple>().Single(); | 81 | var wixFile = section.Tuples.OfType<WixFileTuple>().Single(); |
| 82 | Assert.Equal(Path.Combine(folder, @"data\test.txt"), wixFile[WixFileTupleFields.Source].AsPath().Path); | 82 | Assert.Equal(Path.Combine(folder, @"data\test.txt"), wixFile[WixFileTupleFields.Source].AsPath().Path); |
| 83 | Assert.Equal(@"test.txt", wixFile[WixFileTupleFields.Source].PreviousValue.AsPath().Path); | 83 | Assert.Equal(@"test.txt", wixFile[WixFileTupleFields.Source].PreviousValue.AsPath().Path); |
| 84 | } | 84 | } |
| @@ -110,9 +110,9 @@ namespace WixToolsetTest.CoreIntegration | |||
| 110 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\test.wixpdb"))); | 110 | Assert.True(File.Exists(Path.Combine(intermediateFolder, @"bin\test.wixpdb"))); |
| 111 | 111 | ||
| 112 | var intermediate = Intermediate.Load(Path.Combine(intermediateFolder, @"bin\test.wir")); | 112 | var intermediate = Intermediate.Load(Path.Combine(intermediateFolder, @"bin\test.wir")); |
| 113 | Assert.Single(intermediate.Sections); | 113 | var section = intermediate.Sections.Single(); |
| 114 | 114 | ||
| 115 | var wixFile = intermediate.Sections.SelectMany(s => s.Tuples).OfType<WixFileTuple>().Single(); | 115 | var wixFile = section.Tuples.OfType<WixFileTuple>().Single(); |
| 116 | Assert.Equal(Path.Combine(folder, @"data\test.txt"), wixFile[WixFileTupleFields.Source].AsPath().Path); | 116 | Assert.Equal(Path.Combine(folder, @"data\test.txt"), wixFile[WixFileTupleFields.Source].AsPath().Path); |
| 117 | Assert.Equal(@"test.txt", wixFile[WixFileTupleFields.Source].PreviousValue.AsPath().Path); | 117 | Assert.Equal(@"test.txt", wixFile[WixFileTupleFields.Source].PreviousValue.AsPath().Path); |
| 118 | } | 118 | } |
