diff options
| author | Bob Arnson <bob@firegiant.com> | 2025-02-16 23:15:41 -0500 |
|---|---|---|
| committer | Bob Arnson <github@bobs.org> | 2025-03-03 14:25:07 -0500 |
| commit | 3354cdba91ed4e67a00a23c4e556c9672b2b1f45 (patch) | |
| tree | 7172a87b53050beb5b8d984305728e81e43df6c2 /src/internal/WixInternal.MSTestSupport | |
| parent | ae96ff06cadd0141f48d88a7e9983ca81dace613 (diff) | |
| download | wix-3354cdba91ed4e67a00a23c4e556c9672b2b1f45.tar.gz wix-3354cdba91ed4e67a00a23c4e556c9672b2b1f45.tar.bz2 wix-3354cdba91ed4e67a00a23c4e556c9672b2b1f45.zip | |
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).
Diffstat (limited to 'src/internal/WixInternal.MSTestSupport')
| -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()); |
