diff options
Diffstat (limited to 'src/test/burn/WixToolsetTest.BurnE2E/BAFunctionsTests.cs')
-rw-r--r-- | src/test/burn/WixToolsetTest.BurnE2E/BAFunctionsTests.cs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/test/burn/WixToolsetTest.BurnE2E/BAFunctionsTests.cs b/src/test/burn/WixToolsetTest.BurnE2E/BAFunctionsTests.cs new file mode 100644 index 00000000..5ca3d452 --- /dev/null +++ b/src/test/burn/WixToolsetTest.BurnE2E/BAFunctionsTests.cs | |||
@@ -0,0 +1,31 @@ | |||
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 | } | ||