aboutsummaryrefslogtreecommitdiff
path: root/src/test/msi/WixToolsetTest.MsiE2E/UIExtensionTests.cs
blob: 093ae7cefbdf012c633829df2d42450eb23af526 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// 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.

namespace WixToolsetTest.MsiE2E
{
    using Xunit;
    using Xunit.Abstractions;

    public class UIExtensionTests : MsiE2ETests
    {
        public UIExtensionTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { }

        [Fact]
        public void CanBuildLocalizedWixUIPackageWithDefaultUSEnglish()
        {
            var product = this.CreatePackageInstaller("LocalizedWixUI");

            var nextButton = product.GetControlText("WelcomeDlg", "Next");
            var cancelButton = product.GetControlText("ExitDialog", "Cancel");
            var updateButton = product.GetControlText("VerifyReadyDlg", "Update");

            Assert.Equal("&Next", nextButton);
            Assert.Equal("Cancel", cancelButton);
            Assert.Equal("&Update", updateButton);
        }
    }
}