public void GetUrlLength() { var urls = RepositoryFactory.GetUrls(); IEnumerable <int> httpsUrls = WithoutLinq.GetUrlsLength(urls, url => url.Length); var expected = new List <int>() { 19, 20, 19, 17 }; expected.ToExpectedObject().ShouldEqual(httpsUrls.ToList()); }