aboutsummaryrefslogtreecommitdiff
path: root/src/ext/UI/test/WixToolsetTest.UI
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2021-12-31 18:20:50 -0600
committerSean Hall <r.sean.hall@gmail.com>2022-01-01 10:24:08 -0600
commit95b1be66d4c16b1b05b761c1771df229ac0e539c (patch)
tree7ea6a46cd25ea83c41d0a7ba66df177925d95f44 /src/ext/UI/test/WixToolsetTest.UI
parent5be795c6bcbc03bc37f7cf7c758298ccfaa884ca (diff)
downloadwix-95b1be66d4c16b1b05b761c1771df229ac0e539c.tar.gz
wix-95b1be66d4c16b1b05b761c1771df229ac0e539c.tar.bz2
wix-95b1be66d4c16b1b05b761c1771df229ac0e539c.zip
Try to get more helpful test failure messages.
Diffstat (limited to 'src/ext/UI/test/WixToolsetTest.UI')
-rw-r--r--src/ext/UI/test/WixToolsetTest.UI/UIExtensionFixture.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ext/UI/test/WixToolsetTest.UI/UIExtensionFixture.cs b/src/ext/UI/test/WixToolsetTest.UI/UIExtensionFixture.cs
index 54c4c788..ca36fed5 100644
--- a/src/ext/UI/test/WixToolsetTest.UI/UIExtensionFixture.cs
+++ b/src/ext/UI/test/WixToolsetTest.UI/UIExtensionFixture.cs
@@ -18,7 +18,7 @@ namespace WixToolsetTest.UI
18 var build = new Builder(folder, typeof(UIExtensionFactory), new[] { bindFolder }); 18 var build = new Builder(folder, typeof(UIExtensionFactory), new[] { bindFolder });
19 19
20 var results = build.BuildAndQuery(Build, "Property"); 20 var results = build.BuildAndQuery(Build, "Property");
21 Assert.Equal(new[] 21 WixAssert.CompareLineByLine(new[]
22 { 22 {
23 "Property:WixUI_Mode\tAdvanced", 23 "Property:WixUI_Mode\tAdvanced",
24 }, results.Where(s => s.StartsWith("Property:WixUI_Mode")).ToArray()); 24 }, results.Where(s => s.StartsWith("Property:WixUI_Mode")).ToArray());
@@ -32,7 +32,7 @@ namespace WixToolsetTest.UI
32 var build = new Builder(folder, typeof(UIExtensionFactory), new[] { bindFolder }); 32 var build = new Builder(folder, typeof(UIExtensionFactory), new[] { bindFolder });
33 33
34 var results = build.BuildAndQuery(Build, "Property"); 34 var results = build.BuildAndQuery(Build, "Property");
35 Assert.Equal(new[] 35 WixAssert.CompareLineByLine(new[]
36 { 36 {
37 "Property:WixUI_Mode\tFeatureTree", 37 "Property:WixUI_Mode\tFeatureTree",
38 }, results.Where(s => s.StartsWith("Property:WixUI_Mode")).ToArray()); 38 }, results.Where(s => s.StartsWith("Property:WixUI_Mode")).ToArray());
@@ -46,7 +46,7 @@ namespace WixToolsetTest.UI
46 var build = new Builder(folder, typeof(UIExtensionFactory), new[] { bindFolder }); 46 var build = new Builder(folder, typeof(UIExtensionFactory), new[] { bindFolder });
47 47
48 var results = build.BuildAndQuery(Build, "Property"); 48 var results = build.BuildAndQuery(Build, "Property");
49 Assert.Equal(new[] 49 WixAssert.CompareLineByLine(new[]
50 { 50 {
51 "Property:WixUI_Mode\tInstallDir", 51 "Property:WixUI_Mode\tInstallDir",
52 }, results.Where(s => s.StartsWith("Property:WixUI_Mode")).ToArray()); 52 }, results.Where(s => s.StartsWith("Property:WixUI_Mode")).ToArray());
@@ -60,7 +60,7 @@ namespace WixToolsetTest.UI
60 var build = new Builder(folder, typeof(UIExtensionFactory), new[] { bindFolder }); 60 var build = new Builder(folder, typeof(UIExtensionFactory), new[] { bindFolder });
61 61
62 var results = build.BuildAndQuery(Build, "Property"); 62 var results = build.BuildAndQuery(Build, "Property");
63 Assert.Equal(new[] 63 WixAssert.CompareLineByLine(new[]
64 { 64 {
65 "Property:WixUI_Mode\tMinimal", 65 "Property:WixUI_Mode\tMinimal",
66 }, results.Where(s => s.StartsWith("Property:WixUI_Mode")).ToArray()); 66 }, results.Where(s => s.StartsWith("Property:WixUI_Mode")).ToArray());
@@ -74,7 +74,7 @@ namespace WixToolsetTest.UI
74 var build = new Builder(folder, typeof(UIExtensionFactory), new[] { bindFolder }); 74 var build = new Builder(folder, typeof(UIExtensionFactory), new[] { bindFolder });
75 75
76 var results = build.BuildAndQuery(Build, "Property"); 76 var results = build.BuildAndQuery(Build, "Property");
77 Assert.Equal(new[] 77 WixAssert.CompareLineByLine(new[]
78 { 78 {
79 "Property:WixUI_Mode\tMondo", 79 "Property:WixUI_Mode\tMondo",
80 }, results.Where(s => s.StartsWith("Property:WixUI_Mode")).ToArray()); 80 }, results.Where(s => s.StartsWith("Property:WixUI_Mode")).ToArray());
@@ -88,7 +88,7 @@ namespace WixToolsetTest.UI
88 var build = new Builder(folder, typeof(UIExtensionFactory), new[] { bindFolder }); 88 var build = new Builder(folder, typeof(UIExtensionFactory), new[] { bindFolder });
89 89
90 var results = build.BuildAndQuery(BuildInGerman, "Control"); 90 var results = build.BuildAndQuery(BuildInGerman, "Control");
91 Assert.Equal(new[] 91 WixAssert.CompareLineByLine(new[]
92 { 92 {
93 "&Ja", 93 "&Ja",
94 }, results.Where(s => s.StartsWith("Control:ErrorDlg\tY")).Select(s => s.Split('\t')[9]).ToArray()); 94 }, results.Where(s => s.StartsWith("Control:ErrorDlg\tY")).Select(s => s.Split('\t')[9]).ToArray());