public void TestAny() { // Define variables and constants IEnumerable <int> passingCollection = new[] { 1, 2, 7, -1, 99, 12 }; IEnumerable <int> failingCollection = new[] { 5, 136, 136, 76, 8, 32, 0 }; // Set up context // Execute Assure.Any(passingCollection, i => i < 0); try { Assure.Any(failingCollection, i => i < 0); Assert.Fail(); } catch (AssuranceFailedException) { } // Assert outcome }