From 95b1be66d4c16b1b05b761c1771df229ac0e539c Mon Sep 17 00:00:00 2001 From: Sean Hall <r.sean.hall@gmail.com> Date: Fri, 31 Dec 2021 18:20:50 -0600 Subject: Try to get more helpful test failure messages. --- src/ext/UI/test/WixToolsetTest.UI/UIExtensionFixture.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/ext/UI/test/WixToolsetTest.UI') 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 var build = new Builder(folder, typeof(UIExtensionFactory), new[] { bindFolder }); var results = build.BuildAndQuery(Build, "Property"); - Assert.Equal(new[] + WixAssert.CompareLineByLine(new[] { "Property:WixUI_Mode\tAdvanced", }, results.Where(s => s.StartsWith("Property:WixUI_Mode")).ToArray()); @@ -32,7 +32,7 @@ namespace WixToolsetTest.UI var build = new Builder(folder, typeof(UIExtensionFactory), new[] { bindFolder }); var results = build.BuildAndQuery(Build, "Property"); - Assert.Equal(new[] + WixAssert.CompareLineByLine(new[] { "Property:WixUI_Mode\tFeatureTree", }, results.Where(s => s.StartsWith("Property:WixUI_Mode")).ToArray()); @@ -46,7 +46,7 @@ namespace WixToolsetTest.UI var build = new Builder(folder, typeof(UIExtensionFactory), new[] { bindFolder }); var results = build.BuildAndQuery(Build, "Property"); - Assert.Equal(new[] + WixAssert.CompareLineByLine(new[] { "Property:WixUI_Mode\tInstallDir", }, results.Where(s => s.StartsWith("Property:WixUI_Mode")).ToArray()); @@ -60,7 +60,7 @@ namespace WixToolsetTest.UI var build = new Builder(folder, typeof(UIExtensionFactory), new[] { bindFolder }); var results = build.BuildAndQuery(Build, "Property"); - Assert.Equal(new[] + WixAssert.CompareLineByLine(new[] { "Property:WixUI_Mode\tMinimal", }, results.Where(s => s.StartsWith("Property:WixUI_Mode")).ToArray()); @@ -74,7 +74,7 @@ namespace WixToolsetTest.UI var build = new Builder(folder, typeof(UIExtensionFactory), new[] { bindFolder }); var results = build.BuildAndQuery(Build, "Property"); - Assert.Equal(new[] + WixAssert.CompareLineByLine(new[] { "Property:WixUI_Mode\tMondo", }, results.Where(s => s.StartsWith("Property:WixUI_Mode")).ToArray()); @@ -88,7 +88,7 @@ namespace WixToolsetTest.UI var build = new Builder(folder, typeof(UIExtensionFactory), new[] { bindFolder }); var results = build.BuildAndQuery(BuildInGerman, "Control"); - Assert.Equal(new[] + WixAssert.CompareLineByLine(new[] { "&Ja", }, results.Where(s => s.StartsWith("Control:ErrorDlg\tY")).Select(s => s.Split('\t')[9]).ToArray()); -- cgit v1.2.3-55-g6feb