main
cs 26 lines 1002 Bytes
Raw
1 // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2
3 namespace WixToolsetTest.MsiE2E
4 {
5 using Xunit;
6 using Xunit.Abstractions;
7
8 public class UIExtensionTests : MsiE2ETests
9 {
10 public UIExtensionTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { }
11
12 [Fact]
13 public void CanBuildLocalizedWixUIPackageWithDefaultUSEnglish()
14 {
15 var product = this.CreatePackageInstaller("LocalizedWixUI");
16
17 var nextButton = product.GetControlText("WelcomeDlg", "Next");
18 var cancelButton = product.GetControlText("ExitDialog", "Cancel");
19 var updateButton = product.GetControlText("VerifyReadyDlg", "Update");
20
21 Assert.Equal("&Next", nextButton);
22 Assert.Equal("Cancel", cancelButton);
23 Assert.Equal("&Update", updateButton);
24 }
25 }
26 }