public void CollectionInitEmpty() { var testCollection = new ArrayList(); var testCollection1 = new[] { "element2", "element3" }; var testCollectionFacet = new CollectionFacet(specification); var testAdaptedCollection = AdapterFor(testCollection); Init(testCollectionFacet, testAdaptedCollection, testCollection.Cast <object>(), testCollection1); }
public void CollectionInitAllEmpty() { var testCollection = new ArrayList(); var testCollection1 = new string[] { }; var testCollectionFacet = new CollectionFacet(specification); var testAdaptedCollection = AdapterFor(testCollection); Init(testCollectionFacet, testAdaptedCollection, testCollection.Cast <object>(), testCollection1); }
public void CollectionSize() { var testCollection = new ArrayList { "element1", "element2" }; var testCollectionFacet = new CollectionFacet(specification); var testAdaptedCollection = AdapterFor(testCollection); Size(testCollectionFacet, testAdaptedCollection); }
public void CollectionNotIsSet() { ICollectionFacet testCollectionFacet = new CollectionFacet(specification); Assert.IsFalse(testCollectionFacet.IsASet); testCollectionFacet = new ArrayFacet(specification); Assert.IsFalse(testCollectionFacet.IsASet); testCollectionFacet = new CollectionFacet(specification); Assert.IsFalse(testCollectionFacet.IsASet); }
public void CollectionGetEnumeratorFor() { var testCollection = new ArrayList { "element1", "element2" }; var testCollectionFacet = new CollectionFacet(specification); var testAdaptedCollection = AdapterFor(testCollection); ValidateCollection(testCollectionFacet, testAdaptedCollection, testCollection.Cast <object>()); }
public void CollectionContains() { var testCollection = new ArrayList { "element1", "element2" }; var testCollectionFacet = new CollectionFacet(specification); var testAdaptedCollection = AdapterFor(testCollection); Contains(testCollectionFacet, testAdaptedCollection, "element1", "element3"); }
public void CollectionPage() { var testCollection = new ArrayList { "element1", "element2" }; var testCollectionFacet = new CollectionFacet(specification); INakedObjectAdapter testAdaptedCollection = AdapterFor(testCollection); Page(testCollectionFacet, testAdaptedCollection, "element1"); }
public void CollectionInitToEmpty() { var testCollection = new ArrayList { "element1", "element2" }; var testCollection1 = new string[] { }; var testCollectionFacet = new CollectionFacet(specification); INakedObjectAdapter testAdaptedCollection = AdapterFor(testCollection); Init(testCollectionFacet, testAdaptedCollection, testCollection.Cast <object>(), testCollection1); }