public void ShouldCreateListLoaderInstanceOfGivenType() { Assert.That( _loaderFactory.CreateListLoader(typeof(HtmlElement), _searchContextMock.Object, By.Id("any"), true), Is.Not.Null.And.InstanceOf <ILoader <IList <HtmlElement> > >() ); Assert.That( _loaderFactory.CreateListLoader <HtmlElement>(_searchContextMock.Object, By.Id("any"), true), Is.Not.Null.And.InstanceOf <ILoader <IList <HtmlElement> > >() ); }