From ca6e44d496b0c589fdaabad69a00643f539c47cd Mon Sep 17 00:00:00 2001 From: Bob Arnson Date: Fri, 14 Feb 2025 22:29:39 -0500 Subject: 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 --- src/ext/ComPlus/complus.cmd | 21 --------------------- src/ext/ComPlus/complus_t.proj | 17 +++++++++++++++++ .../ComPlusExtensionFixture.cs | 9 +++++---- .../WixToolsetTest.ComPlus.csproj | 7 ++++--- 4 files changed, 26 insertions(+), 28 deletions(-) delete mode 100644 src/ext/ComPlus/complus.cmd create mode 100644 src/ext/ComPlus/complus_t.proj (limited to 'src/ext/ComPlus') diff --git a/src/ext/ComPlus/complus.cmd b/src/ext/ComPlus/complus.cmd deleted file mode 100644 index 3b3a5772..00000000 --- a/src/ext/ComPlus/complus.cmd +++ /dev/null @@ -1,21 +0,0 @@ -@setlocal -@pushd %~dp0 - -@set _C=Debug -:parse_args -@if /i "%1"=="release" set _C=Release -@if not "%1"=="" shift & goto parse_args - -@echo ComPlus.wixext build %_C% - -:: Build -msbuild -Restore -p:Configuration=%_C% -tl -nologo -warnaserror || exit /b - -:: Test -dotnet test -c %_C% --no-build test\WixToolsetTest.ComPlus || exit /b - -:: Pack -msbuild -t:Pack -p:Configuration=%_C% -tl -nologo -warnaserror -p:NoBuild=true wixext\WixToolset.ComPlus.wixext.csproj || exit /b - -@popd -@endlocal \ No newline at end of file diff --git a/src/ext/ComPlus/complus_t.proj b/src/ext/ComPlus/complus_t.proj new file mode 100644 index 00000000..439856b6 --- /dev/null +++ b/src/ext/ComPlus/complus_t.proj @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/src/ext/ComPlus/test/WixToolsetTest.ComPlus/ComPlusExtensionFixture.cs b/src/ext/ComPlus/test/WixToolsetTest.ComPlus/ComPlusExtensionFixture.cs index 17c5eb0f..7b38ef54 100644 --- a/src/ext/ComPlus/test/WixToolsetTest.ComPlus/ComPlusExtensionFixture.cs +++ b/src/ext/ComPlus/test/WixToolsetTest.ComPlus/ComPlusExtensionFixture.cs @@ -3,14 +3,15 @@ namespace WixToolsetTest.ComPlus { using System.Linq; - using WixInternal.TestSupport; - using WixInternal.Core.TestPackage; + using Microsoft.VisualStudio.TestTools.UnitTesting; + using WixInternal.MSTestSupport; + using WixInternal.Core.MSTestPackage; using WixToolset.ComPlus; - using Xunit; + [TestClass] public class ComPlusExtensionFixture { - [Fact] + [TestMethod] public void CanBuildUsingComPlusPartition() { var folder = TestData.Get(@"TestData\UsingComPlusPartition"); diff --git a/src/ext/ComPlus/test/WixToolsetTest.ComPlus/WixToolsetTest.ComPlus.csproj b/src/ext/ComPlus/test/WixToolsetTest.ComPlus/WixToolsetTest.ComPlus.csproj index a9e9dbef..d0a7081b 100644 --- a/src/ext/ComPlus/test/WixToolsetTest.ComPlus/WixToolsetTest.ComPlus.csproj +++ b/src/ext/ComPlus/test/WixToolsetTest.ComPlus/WixToolsetTest.ComPlus.csproj @@ -1,10 +1,10 @@ - + net6.0 - true + true @@ -16,6 +16,7 @@ - + + -- cgit v1.2.3-55-g6feb