From 3354cdba91ed4e67a00a23c4e556c9672b2b1f45 Mon Sep 17 00:00:00 2001 From: Bob Arnson Date: Sun, 16 Feb 2025 23:15:41 -0500 Subject: Convert WixToolsetTest.Sdk to MSTest.*** ***Does not include a full conversion to traversal projects. The wix segment already uses traversal projects extensively so there isn't a significant per win, especially compared to the effort required...but MSTest's method-level parallelism cuts test run time in half (~60->~30). --- src/internal/SetBuildNumber/Directory.Packages.props.pp | 2 +- src/internal/WixBuildFinalize/WixBuildFinalize.proj | 2 +- src/internal/WixInternal.MSTestSupport/WixAssert.cs | 10 ++++++++++ src/internal/internal.sln | 2 -- 4 files changed, 12 insertions(+), 4 deletions(-) (limited to 'src/internal') diff --git a/src/internal/SetBuildNumber/Directory.Packages.props.pp b/src/internal/SetBuildNumber/Directory.Packages.props.pp index 18a9b5eb..8204df97 100644 --- a/src/internal/SetBuildNumber/Directory.Packages.props.pp +++ b/src/internal/SetBuildNumber/Directory.Packages.props.pp @@ -100,7 +100,7 @@ - + diff --git a/src/internal/WixBuildFinalize/WixBuildFinalize.proj b/src/internal/WixBuildFinalize/WixBuildFinalize.proj index bd68a471..1025fad1 100644 --- a/src/internal/WixBuildFinalize/WixBuildFinalize.proj +++ b/src/internal/WixBuildFinalize/WixBuildFinalize.proj @@ -6,7 +6,7 @@ net472 - + (IEnumerable collection, Func predicate) + { + Assert.IsTrue(collection.Any(predicate)); + } + + public static void NotEmpty(IEnumerable collection) + { + Assert.IsTrue(collection.Count() > 0); + } + public static void Empty(IEnumerable collection) { Assert.AreEqual(0, collection.Count()); diff --git a/src/internal/internal.sln b/src/internal/internal.sln index 5514e543..8a326615 100644 --- a/src/internal/internal.sln +++ b/src/internal/internal.sln @@ -9,8 +9,6 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "WixInternal.TestSupport.Nat EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WixInternal.BaseBuildTasks.Sources", "WixInternal.BaseBuildTasks.Sources\WixInternal.BaseBuildTasks.Sources.csproj", "{6B654490-AB0D-4F94-B564-DAA80044D5A3}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WixInternal.XunitTestSupport", "WixInternal.XunitTestSupport\WixInternal.XunitTestSupport.csproj", "{AF7C4730-583B-46F8-9BB6-16D1F0330932}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WixInternal.MSTestSupport", "WixInternal.MSTestSupport\WixInternal.MSTestSupport.csproj", "{E70898F2-8D08-4FCE-9CFF-EF1792FCA2E2}" EndProject Global -- cgit v1.2.3-55-g6feb