public void GenericQueryableInitEmpty() { IQueryable<string> testCollection = new List<string>().AsQueryable(); var testCollection1 = new[] {"element2", "element3"}; var testCollectionFacet = new DotNetGenericIQueryableFacet<string>(facetHolder, typeof (string), false); INakedObject testAdaptedCollection = testSystem.AdapterFor(testCollection); Init(testCollectionFacet, testAdaptedCollection, testCollection, testCollection1); }
public void GenericQueryableSize() { IQueryable<string> testCollection = new List<string> {"element1", "element2"}.AsQueryable(); var testCollectionFacet = new DotNetGenericIQueryableFacet<string>(facetHolder, typeof (string), false); INakedObject testAdaptedCollection = testSystem.AdapterFor(testCollection); Size(testCollectionFacet, testAdaptedCollection); }
public void GenericCollectionNotIsSet() { ICollectionFacet testCollectionFacet = new DotNetGenericCollectionFacet<string>(facetHolder, typeof (string), false); Assert.IsFalse(testCollectionFacet.IsASet); testCollectionFacet = new DotNetGenericIEnumerableFacet<string>(facetHolder, typeof (string), false); Assert.IsFalse(testCollectionFacet.IsASet); testCollectionFacet = new DotNetGenericIQueryableFacet<string>(facetHolder, typeof (string), false); Assert.IsFalse(testCollectionFacet.IsASet); }