public void WhenSourceIsNull_ThenThrowException() { Assert.Throws <ArgumentNullException>(() => CollectionExtensions.IsIndexValid(null as ICollection <int>, 0)); }