public void WhenIsNull_ThenThrowException() { Assert.Throws <ArgumentNullException>(() => EnumerableExtensions.AllUnique(null as IEnumerable <int>)); }