public void None() { Assert.ThrowsExact <ArgumentNullException>(() => Assert.None(null as int[], v => v == 0)); Assert.ThrowsExact <ArgumentNullException>(() => Assert.None(new int[] { }, null)); Assert.ThrowsExact <ArgumentException>(() => Assert.None(new int[] { }, v => v == 0)); Assert.ThrowsExact <AssertionException>(() => Assert.None(new int[] { 1, 2, 3, 4, 5 }, v => v >= 3)); Assert.DoesNotThrow(() => Assert.None(new int[] { 1, 2, 3, 4, 5 }, v => v > 10)); Assert.ThrowsExact <AssertionException>(() => Assert.None(new int[] { 1, 2, 3, 4, 5 }, v => v == 1)); }