コード例 #1
0
 public void Empty()
 {
     Assert.ThrowsExact <ArgumentNullException>(() => Assert.Empty <int>(null));
     Assert.DoesNotThrow(() => Assert.Empty(new int[] { }));
     Assert.DoesNotThrow(() => Assert.Empty(string.Empty));
     Assert.ThrowsExact <AssertionException>(() => Assert.Empty(new[] { 1, 2, 3 }));
 }