Exemplo n.º 1
0
        public void ShouldCreateTransaparentElementListLoader()
        {
            var loader = _loaderFactory.CreateElementListLoader(
                _searchContextMock.Object, By.Id("transparentList"), false
                );

            var firstList  = loader.Load();
            var secondList = loader.Load();

            Assert.That(firstList, Is.Not.SameAs(secondList));

            _searchContextMock.Verify(
                ctx => ctx.FindElements(By.Id("transparentList")), Times.Exactly(2)
                );
        }