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); }
public void GenericCollectionSize() { var testCollection = new List<string> {"element1", "element2"}; var testCollectionFacet = new DotNetGenericCollectionFacet<string>(facetHolder, typeof (string), false); INakedObject testAdaptedCollection = testSystem.AdapterFor(testCollection); Size(testCollectionFacet, testAdaptedCollection); }
public void GenericCollectionInitEmpty() { var testCollection = new List<string>(); var testCollection1 = new[] {"element2", "element3"}; var testCollectionFacet = new DotNetGenericCollectionFacet<string>(facetHolder, typeof (string), false); INakedObject testAdaptedCollection = testSystem.AdapterFor(testCollection); Init(testCollectionFacet, testAdaptedCollection, testCollection, testCollection1); }