diff options
| author | Bob Arnson <bob@firegiant.com> | 2018-09-18 17:52:39 -0400 |
|---|---|---|
| committer | Rob Mensching <rob@robmensching.com> | 2018-09-18 15:04:08 -0700 |
| commit | cd1709996876ac1d6ff5750cd573b9be78313a9e (patch) | |
| tree | df936ce0d8e865537408a3d80ab3c6c2ce38ac60 /src/test/WixToolsetTest.CoreIntegration/PreprocessorFixture.cs | |
| parent | 954b7179a06c1933ae783b602bc29caa0370aec0 (diff) | |
| download | wix-cd1709996876ac1d6ff5750cd573b9be78313a9e.tar.gz wix-cd1709996876ac1d6ff5750cd573b9be78313a9e.tar.bz2 wix-cd1709996876ac1d6ff5750cd573b9be78313a9e.zip | |
Fix ?foreach? so all loop values get "executed."
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/PreprocessorFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/PreprocessorFixture.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/PreprocessorFixture.cs b/src/test/WixToolsetTest.CoreIntegration/PreprocessorFixture.cs index 1193b685..9c60c902 100644 --- a/src/test/WixToolsetTest.CoreIntegration/PreprocessorFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/PreprocessorFixture.cs | |||
| @@ -39,6 +39,30 @@ namespace WixToolsetTest.CoreIntegration | |||
| 39 | Assert.Single(warnings); | 39 | Assert.Single(warnings); |
| 40 | } | 40 | } |
| 41 | } | 41 | } |
| 42 | |||
| 43 | [Fact] | ||
| 44 | public void ForEachLoopsWork() | ||
| 45 | { | ||
| 46 | var folder = TestData.Get(@"TestData\ForEach"); | ||
| 47 | |||
| 48 | using (var fs = new DisposableFileSystem()) | ||
| 49 | { | ||
| 50 | var baseFolder = fs.GetFolder(); | ||
| 51 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 52 | |||
| 53 | var result = WixRunner.Execute(new[] | ||
| 54 | { | ||
| 55 | "build", | ||
| 56 | Path.Combine(folder, "Package.wxs"), | ||
| 57 | Path.Combine(folder, "PackageComponents.wxs"), | ||
| 58 | "-loc", Path.Combine(folder, "Package.en-us.wxl"), | ||
| 59 | "-bindpath", Path.Combine(folder, "data"), | ||
| 60 | "-intermediateFolder", intermediateFolder, | ||
| 61 | "-o", Path.Combine(baseFolder, @"bin\test.msi") | ||
| 62 | }, out var messages); | ||
| 63 | Assert.Equal(0, result); | ||
| 64 | } | ||
| 65 | } | ||
| 42 | } | 66 | } |
| 43 | } | 67 | } |
| 44 | 68 | ||
