public void ShouldExtendArrayEnumerableByCountMethod() { // given IEnumerable array = new object[] { "A", "B", 1 }; // when var count = CollectionExtensions.Count(array); // then Check.That(count).IsEqualTo(3); }
public void ShouldExtendGenericEnumerableByCountMethod() { // given IEnumerable list = new List <int> { 1, 2, 3 }; // when var count = CollectionExtensions.Count(list); // then Check.That(count).IsEqualTo(3); }