public void WhenIsNull_ThenThrowException() { Assert.Throws <ArgumentNullException>(() => EnumerableStringExtensions.GetShortest(null)); }
public static void OrderNamespaces_GivenNullCollection_ThrowsArgumentNullException() { Assert.That(() => EnumerableStringExtensions.OrderNamespaces(null), Throws.ArgumentNullException); }