Esempio n. 1
0
 public void CollectionSize() {
     var testCollection = new ArrayList {"element1", "element2"};
     var testCollectionFacet = new DotNetCollectionFacet(facetHolder);
     INakedObject testAdaptedCollection = testSystem.AdapterFor(testCollection);
     Size(testCollectionFacet, testAdaptedCollection);
 }
Esempio n. 2
0
 public void CollectionInitToEmpty() {
     var testCollection = new ArrayList {"element1", "element2"};
     var testCollection1 = new string[] {};
     var testCollectionFacet = new DotNetCollectionFacet(facetHolder);
     INakedObject testAdaptedCollection = testSystem.AdapterFor(testCollection);
     Init(testCollectionFacet, testAdaptedCollection, testCollection.Cast<object>(), testCollection1);
 }
Esempio n. 3
0
 public void CollectionNotIsSet() {
     ICollectionFacet testCollectionFacet = new DotNetCollectionFacet(facetHolder);
     Assert.IsFalse(testCollectionFacet.IsASet);
     testCollectionFacet = new DotNetArrayFacet(facetHolder);
     Assert.IsFalse(testCollectionFacet.IsASet);
     testCollectionFacet = new DotNetCollectionFacet(facetHolder);
     Assert.IsFalse(testCollectionFacet.IsASet);
 }
Esempio n. 4
0
 public void CollectionGetEnumeratorFor() {
     var testCollection = new ArrayList {"element1", "element2"};
     var testCollectionFacet = new DotNetCollectionFacet(facetHolder);
     INakedObject testAdaptedCollection = testSystem.AdapterFor(testCollection);
     ValidateCollection(testCollectionFacet, testAdaptedCollection, testCollection.Cast<object>());
 }