diff options
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 | ||