diff options
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()); |