public void TestCopyTo()
 {
     IList os = GetObjectSet();
     var items = new Item[2];
     os.CopyTo(items, 0);
     AssertArray(os, items);
 }
 protected override void Store()
 {
     Item item = new Item();
     item._intArray = INT_DATA;
     item._stringArray = STRING_DATA;
     item._nullableIntArray = NULLABLE_INT_DATA;
     item._elementArray = ELEMENT_DATA;
     Store(item);
 }
 protected override void Store()
 {
     foreach (var str in DATA)
     {
         var item = new Item();
         item._name = str;
         item._dictionary = new CustomDictionary();
         item._dictionary.Add(str, str);
         Store(item);
     }
 }
 protected override void Store()
 {
     foreach (var str in DATA)
     {
         var item = new Item();
         item._name = str;
         item._collection = new CustomCollection();
         item._collection.Add(str);
         Store(item);
     }
 }
 private static void AssertArray(IList os, Item[] items)
 {
     Assert.AreEqual(items[0], os[0]);
     Assert.AreEqual(items[1], os[1]);
 }
Exemple #6
0
 protected override void Store()
 {
     Item item = new Item();
     item._enum = MyEnum.C;
     Store(item);
 }