Пример #1
0
        public void CanLoadEmptyList()
        {
            var loader = new AsyncLoader <string>(
                seqFactory: Seq.ListBased,
                loadDataAsync: token => Task.FromResult(Enumerable.Empty <string>()));

            loader.LoadAsync();


            Assert.That(loader.ToList(), Is.Empty);
        }