aboutsummaryrefslogtreecommitdiff
path: root/src/test/WixToolsetTest.CoreIntegration/PreprocessorFixture.cs
diff options
context:
space:
mode:
authorBob Arnson <bob@firegiant.com>2018-09-18 17:52:39 -0400
committerRob Mensching <rob@robmensching.com>2018-09-18 15:04:08 -0700
commitcd1709996876ac1d6ff5750cd573b9be78313a9e (patch)
treedf936ce0d8e865537408a3d80ab3c6c2ce38ac60 /src/test/WixToolsetTest.CoreIntegration/PreprocessorFixture.cs
parent954b7179a06c1933ae783b602bc29caa0370aec0 (diff)
downloadwix-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.cs24
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