main
cs 31 lines 1.33 KB
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.BurnE2E
4 {
5 using WixTestTools;
6 using Xunit;
7 using Xunit.Abstractions;
8
9 public class BAFunctionsTests : BurnE2ETests
10 {
11 public BAFunctionsTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper) { }
12
13 [RuntimeFact]
14 public void LogsPersistedRelatedBundleVariables()
15 {
16 this.CreatePackageInstaller("PackageAv1");
17 this.CreatePackageInstaller("PackageAv2");
18 var bundleAv1 = this.CreateBundleInstaller("BundleAv1");
19 var bundleAv2 = this.CreateBundleInstaller("BundleAv2");
20
21 bundleAv1.Install();
22 bundleAv1.VerifyRegisteredAndInPackageCache();
23
24 var bundleAv2InstallLogFilePath = bundleAv2.Install();
25 bundleAv2.VerifyRegisteredAndInPackageCache();
26
27 Assert.True(LogVerifier.MessageInLogFileRegex(bundleAv2InstallLogFilePath, @"Retrieved related bundle variable with BAFunctions: ANumber = 42"));
28 Assert.True(LogVerifier.MessageInLogFileRegex(bundleAv2InstallLogFilePath, @"Retrieved related bundle variable with BAFunctions: AString = This is a test"));
29 }
30 }
31 }