コード例 #1
0
 public void TestCopyTo()
 {
     IList os = GetObjectSet();
     var items = new Item[2];
     os.CopyTo(items, 0);
     AssertArray(os, items);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 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);
     }
 }
コード例 #4
0
 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);
     }
 }
コード例 #5
0
 private static void AssertArray(IList os, Item[] items)
 {
     Assert.AreEqual(items[0], os[0]);
     Assert.AreEqual(items[1], os[1]);
 }
コード例 #6
0
ファイル: EnumTestCase.cs プロジェクト: superyfwy/db4o
 protected override void Store()
 {
     Item item = new Item();
     item._enum = MyEnum.C;
     Store(item);
 }