コード例 #1
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);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 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);
 }