diff options
-rw-r--r-- | src/test/WixToolsetTest.UI/UIExtensionFixture.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.UI/UIExtensionFixture.cs b/src/test/WixToolsetTest.UI/UIExtensionFixture.cs index 5c63587a..54c4c788 100644 --- a/src/test/WixToolsetTest.UI/UIExtensionFixture.cs +++ b/src/test/WixToolsetTest.UI/UIExtensionFixture.cs | |||
@@ -80,10 +80,32 @@ namespace WixToolsetTest.UI | |||
80 | }, results.Where(s => s.StartsWith("Property:WixUI_Mode")).ToArray()); | 80 | }, results.Where(s => s.StartsWith("Property:WixUI_Mode")).ToArray()); |
81 | } | 81 | } |
82 | 82 | ||
83 | [Fact] | ||
84 | public void CanBuildUsingWixUIMondoLocalized() | ||
85 | { | ||
86 | var folder = TestData.Get(@"TestData\WixUI_Mondo"); | ||
87 | var bindFolder = TestData.Get(@"TestData\data"); | ||
88 | var build = new Builder(folder, typeof(UIExtensionFactory), new[] { bindFolder }); | ||
89 | |||
90 | var results = build.BuildAndQuery(BuildInGerman, "Control"); | ||
91 | Assert.Equal(new[] | ||
92 | { | ||
93 | "&Ja", | ||
94 | }, results.Where(s => s.StartsWith("Control:ErrorDlg\tY")).Select(s => s.Split('\t')[9]).ToArray()); | ||
95 | } | ||
96 | |||
83 | private static void Build(string[] args) | 97 | private static void Build(string[] args) |
84 | { | 98 | { |
85 | var result = WixRunner.Execute(args) | 99 | var result = WixRunner.Execute(args) |
86 | .AssertSuccess(); | 100 | .AssertSuccess(); |
87 | } | 101 | } |
102 | |||
103 | private static void BuildInGerman(string[] args) | ||
104 | { | ||
105 | var localizedArgs = args.Append("-culture").Append("de-DE").ToArray(); | ||
106 | |||
107 | var result = WixRunner.Execute(localizedArgs) | ||
108 | .AssertSuccess(); | ||
109 | } | ||
88 | } | 110 | } |
89 | } | 111 | } |