Пример #1
0
        public void AllFailedTest()
        {
            var items = new[] { "Lorem", "ipsum", "dolor", "sit", "amet", "test" };

            Assert.Throws <AllException>(() => Verify.All(items, x => Assert.Contains(x.ToString(), LoremIpsumDolorSitAmetString)));
        }
Пример #2
0
        public void AllTest()
        {
            var items = new[] { "Lorem", "ipsum", "dolor", "sit", "amet" };

            Verify.All(items, x => Assert.Contains(x.ToString(), LoremIpsumDolorSitAmetString));
        }