Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 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);
 }