summaryrefslogtreecommitdiff
path: root/src/wix/test/WixToolsetTest.CoreIntegration/UIFixture.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/wix/test/WixToolsetTest.CoreIntegration/UIFixture.cs')
-rw-r--r--src/wix/test/WixToolsetTest.CoreIntegration/UIFixture.cs31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/wix/test/WixToolsetTest.CoreIntegration/UIFixture.cs b/src/wix/test/WixToolsetTest.CoreIntegration/UIFixture.cs
index 8218ed67..728e6c9e 100644
--- a/src/wix/test/WixToolsetTest.CoreIntegration/UIFixture.cs
+++ b/src/wix/test/WixToolsetTest.CoreIntegration/UIFixture.cs
@@ -65,5 +65,36 @@ namespace WixToolsetTest.CoreIntegration
65 }, results); 65 }, results);
66 } 66 }
67 } 67 }
68
69 [Fact]
70 public void CanErrorWithInvalidControlType()
71 {
72 var folder = TestData.Get(@"TestData");
73
74 using (var fs = new DisposableFileSystem())
75 {
76 var baseFolder = fs.GetFolder();
77 var intermediateFolder = Path.Combine(baseFolder, "obj");
78 var msiPath = Path.Combine(baseFolder, @"bin\test.msi");
79
80 var result = WixRunner.Execute(new[]
81 {
82 "build",
83 Path.Combine(folder, "UI", "DialogWithInvalidControlType.wxs"),
84 Path.Combine(folder, "ProductWithComponentGroupRef", "MinimalComponentGroup.wxs"),
85 Path.Combine(folder, "ProductWithComponentGroupRef", "Product.wxs"),
86 "-bindpath", Path.Combine(folder, "SingleFile", "data"),
87 "-intermediateFolder", intermediateFolder,
88 "-o", msiPath,
89 });
90
91 var errors = result.Messages.Where(m => m.Level == MessageLevel.Error).ToList();
92 Assert.Equal(new[]
93 {
94 21,
95 52
96 }, errors.Select(e => e.Id).ToArray());
97 }
98 }
68 } 99 }
69} 100}