Esempio n. 1
0
        public void GivenLazyListWhenClearShouldLoad()
        {
            _lazyLoadResolverMock.Setup(x => x.Resolve(It.IsAny <LazyLoadParameter>()))
            .Returns(new[] { new Stub(), new Stub() })
            .Verifiable();

            var lazyList = new LazyList <Stub>(_lazyLoadResolverMock.Object);

            lazyList.Clear();

            _lazyLoadResolverMock.VerifyAll();
        }
Esempio n. 2
0
 /// <inheritdoc/>
 public void Clear()
 {
     locals.Clear();
 }
Esempio n. 3
0
 public void Clear()
 {
     m_items.Clear();
 }