示例#1
0
 public void TrueForAllNegativeTest()
 {
     Guard.TrueForAll <bool>(
         new[] { true, true, true, false },
         "argumentName",
         b => b);
 }
示例#2
0
        public void TrueForAllTest()
        {
            var passed = new bool[4];

            Guard.TrueForAll <int>(
                new[] { 0, 1, 2, 3 },
                "argumentName",
                b => passed[b] = true);

            Assert.IsTrue(passed.All(b => b));
        }