diff options
author | Bob Arnson <bob@firegiant.com> | 2025-02-16 23:15:41 -0500 |
---|---|---|
committer | Bob Arnson <bob@firegiant.com> | 2025-02-17 15:38:31 -0500 |
commit | 8b1989b1957b63943ade834eb3b56db8a52c7007 (patch) | |
tree | 21ddd36861457a385e6f94d0b97017747c71f574 /src/internal/WixInternal.MSTestSupport/WixAssert.cs | |
parent | bd1f751efb6e9dd3218af2d3d152123e5d323247 (diff) | |
download | wix-bob/MSTestTraversal.tar.gz wix-bob/MSTestTraversal.tar.bz2 wix-bob/MSTestTraversal.zip |
Convert WixToolsetTest.Sdk to MSTest.***bob/MSTestTraversal
***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).
Diffstat (limited to 'src/internal/WixInternal.MSTestSupport/WixAssert.cs')
-rw-r--r-- | src/internal/WixInternal.MSTestSupport/WixAssert.cs | 10 |
1 files changed, 10 insertions, 0 deletions
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 | |||
92 | Assert.IsTrue(collection.All(predicate)); | 92 | Assert.IsTrue(collection.All(predicate)); |
93 | } | 93 | } |
94 | 94 | ||
95 | public static void Any<T>(IEnumerable<T> collection, Func<T, bool> predicate) | ||
96 | { | ||
97 | Assert.IsTrue(collection.Any(predicate)); | ||
98 | } | ||
99 | |||
100 | public static void NotEmpty<T>(IEnumerable<T> collection) | ||
101 | { | ||
102 | Assert.IsTrue(collection.Count() > 0); | ||
103 | } | ||
104 | |||
95 | public static void Empty<T>(IEnumerable<T> collection) | 105 | public static void Empty<T>(IEnumerable<T> collection) |
96 | { | 106 | { |
97 | Assert.AreEqual(0, collection.Count()); | 107 | Assert.AreEqual(0, collection.Count()); |