Beispiel #1
0
 public void ContainsEqual_null_ArgumentNullException()
 {
     Assert.Throws <ArgumentNullException>(() => IEnumerableExtensions.ConaintsEqual <short>(null));
     Assert.Throws <ArgumentNullException>(() => IEnumerableExtensions.ConaintsEqual <int>(null));
     Assert.Throws <ArgumentNullException>(() => IEnumerableExtensions.ConaintsEqual <long>(null));
     Assert.Throws <ArgumentNullException>(() => IEnumerableExtensions.ConaintsEqual <bool>(null));
     Assert.Throws <ArgumentNullException>(() => IEnumerableExtensions.ConaintsEqual <byte>(null));
     Assert.Throws <ArgumentNullException>(() => IEnumerableExtensions.ConaintsEqual <DateTime>(null));
     Assert.Throws <ArgumentNullException>(() => IEnumerableExtensions.ConaintsEqual <TimeSpan>(null));
     Assert.Throws <ArgumentNullException>(() => IEnumerableExtensions.ConaintsEqual <float>(null));
     Assert.Throws <ArgumentNullException>(() => IEnumerableExtensions.ConaintsEqual <double>(null));
     Assert.Throws <ArgumentNullException>(() => IEnumerableExtensions.ConaintsEqual <string>(null));
     Assert.Throws <ArgumentNullException>(() => IEnumerableExtensions.ConaintsEqual <List <int> >(null));
 }