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/WixInternal.MSTestSupport/WixAssert.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/internal/WixInternal.MSTestSupport') diff --git a/src/internal/WixInternal.MSTestSupport/WixAssert.cs b/src/internal/WixInternal.MSTestSupport/WixAssert.cs index b4c59fa5..9110309d 100644 --- a/src/internal/WixInternal.MSTestSupport/WixAssert.cs +++ b/src/internal/WixInternal.MSTestSupport/WixAssert.cs @@ -92,6 +92,16 @@ namespace WixInternal.MSTestSupport Assert.IsTrue(collection.All(predicate)); } + public static void Any(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()); -- cgit v1.2.3-55-g6feb