diff options
Diffstat (limited to 'src/ext/Firewall/test/WixToolsetTest.Firewall/FirewallExtensionFixture.cs')
-rw-r--r-- | src/ext/Firewall/test/WixToolsetTest.Firewall/FirewallExtensionFixture.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ext/Firewall/test/WixToolsetTest.Firewall/FirewallExtensionFixture.cs b/src/ext/Firewall/test/WixToolsetTest.Firewall/FirewallExtensionFixture.cs index 9b4cb2b1..3be8af0e 100644 --- a/src/ext/Firewall/test/WixToolsetTest.Firewall/FirewallExtensionFixture.cs +++ b/src/ext/Firewall/test/WixToolsetTest.Firewall/FirewallExtensionFixture.cs | |||
@@ -1,7 +1,12 @@ | |||
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. | 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 | 2 | ||
3 | using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
4 | |||
5 | [assembly: Parallelize(Scope = ExecutionScope.MethodLevel)] | ||
6 | |||
3 | namespace WixToolsetTest.Firewall | 7 | namespace WixToolsetTest.Firewall |
4 | { | 8 | { |
9 | using System; | ||
5 | using System.Data; | 10 | using System.Data; |
6 | using System.IO; | 11 | using System.IO; |
7 | using System.Linq; | 12 | using System.Linq; |
@@ -687,8 +692,9 @@ namespace WixToolsetTest.Firewall | |||
687 | var folder = TestData.Get(@"TestData", path); | 692 | var folder = TestData.Get(@"TestData", path); |
688 | var build = new Builder(folder, typeof(FirewallExtensionFactory), new[] { folder }); | 693 | var build = new Builder(folder, typeof(FirewallExtensionFactory), new[] { folder }); |
689 | var output = Path.Combine(folder, $"Firewall{ruleName}.xml"); | 694 | var output = Path.Combine(folder, $"Firewall{ruleName}.xml"); |
695 | var isOfficialBuild = !String.IsNullOrEmpty(Environment.GetEnvironmentVariable("WixOfficialBuild")); | ||
690 | 696 | ||
691 | build.BuildAndDecompileAndBuild(Build, Decompile, output, validate: true); | 697 | build.BuildAndDecompileAndBuild(Build, Decompile, output, validate: isOfficialBuild); |
692 | 698 | ||
693 | var doc = XDocument.Load(output); | 699 | var doc = XDocument.Load(output); |
694 | var actual = doc.Descendants() | 700 | var actual = doc.Descendants() |