public void TrueForAllNegativeTest() { Guard.TrueForAll <bool>( new[] { true, true, true, false }, "argumentName", b => b); }
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)); }