diff options
author | Bob Arnson <bob@firegiant.com> | 2025-02-14 22:29:39 -0500 |
---|---|---|
committer | Bob Arnson <github@bobs.org> | 2025-03-03 14:25:07 -0500 |
commit | ca6e44d496b0c589fdaabad69a00643f539c47cd (patch) | |
tree | edf84727cecfc03092a2851b465d97622c5048eb /src/ext/PowerShell/test/WixToolsetTest.PowerShell/PowerShellExtensionFixture.cs | |
parent | ba7fd5837ea149b2e319cc577fad27ce1162a064 (diff) | |
download | wix-ca6e44d496b0c589fdaabad69a00643f539c47cd.tar.gz wix-ca6e44d496b0c589fdaabad69a00643f539c47cd.tar.bz2 wix-ca6e44d496b0c589fdaabad69a00643f539c47cd.zip |
Convert ext\ to MSTest and traversal projects.
- Move ext\ unit tests to MSTest.
- MSBuildify ext projects with MSTest execution.
- Fork test support projects for MSTest:
- WixInternal.TestSupport
- WixInternal.Core.TestPackage
Diffstat (limited to 'src/ext/PowerShell/test/WixToolsetTest.PowerShell/PowerShellExtensionFixture.cs')
-rw-r--r-- | src/ext/PowerShell/test/WixToolsetTest.PowerShell/PowerShellExtensionFixture.cs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/ext/PowerShell/test/WixToolsetTest.PowerShell/PowerShellExtensionFixture.cs b/src/ext/PowerShell/test/WixToolsetTest.PowerShell/PowerShellExtensionFixture.cs index eafda99f..a1dc3282 100644 --- a/src/ext/PowerShell/test/WixToolsetTest.PowerShell/PowerShellExtensionFixture.cs +++ b/src/ext/PowerShell/test/WixToolsetTest.PowerShell/PowerShellExtensionFixture.cs | |||
@@ -2,14 +2,15 @@ | |||
2 | 2 | ||
3 | namespace WixToolsetTest.PowerShell | 3 | namespace WixToolsetTest.PowerShell |
4 | { | 4 | { |
5 | using WixInternal.TestSupport; | 5 | using Microsoft.VisualStudio.TestTools.UnitTesting; |
6 | using WixInternal.Core.TestPackage; | 6 | using WixInternal.MSTestSupport; |
7 | using WixInternal.Core.MSTestPackage; | ||
7 | using WixToolset.PowerShell; | 8 | using WixToolset.PowerShell; |
8 | using Xunit; | ||
9 | 9 | ||
10 | [TestClass] | ||
10 | public class PowerShellExtensionFixture | 11 | public class PowerShellExtensionFixture |
11 | { | 12 | { |
12 | [Fact] | 13 | [TestMethod] |
13 | public void CantBuildUsingTypesFileWithoutSnapIn() | 14 | public void CantBuildUsingTypesFileWithoutSnapIn() |
14 | { | 15 | { |
15 | var folder = TestData.Get(@"TestData\TypesFile"); | 16 | var folder = TestData.Get(@"TestData\TypesFile"); |
@@ -19,8 +20,8 @@ namespace WixToolsetTest.PowerShell | |||
19 | var results = build.BuildAndQuery(args => { | 20 | var results = build.BuildAndQuery(args => { |
20 | wixRunnerResult = WixRunner.Execute(args); | 21 | wixRunnerResult = WixRunner.Execute(args); |
21 | }); | 22 | }); |
22 | Assert.NotNull(wixRunnerResult); | 23 | Assert.IsNotNull(wixRunnerResult); |
23 | Assert.Equal((int)PSErrors.Ids.NeitherIdSpecified, wixRunnerResult.ExitCode); | 24 | Assert.AreEqual((int)PSErrors.Ids.NeitherIdSpecified, wixRunnerResult.ExitCode); |
24 | } | 25 | } |
25 | } | 26 | } |
26 | } | 27 | } |