System.Linq.Tests.SelectTests.Select_SourceIsAnIList_Count C# (CSharp) Method

Select_SourceIsAnIList_Count() private method

private Select_SourceIsAnIList_Count ( ) : void
return void
        public void Select_SourceIsAnIList_Count()
        {
            var souce = new List<int> { 1, 2, 3, 4 }.AsReadOnly();
            Assert.Equal(souce.Count, souce.Select(i => i * 2).Count());
        }
SelectTests