コード例 #1
0
 protected override void Store(IObjectContainerAdapter objectContainer)
 {
     for (int i = 0; i < 10; i++)
     {
         FreespaceManagerMigrationTestCase.StClass cls = new FreespaceManagerMigrationTestCase.StClass
                                                             ();
         ArrayList v = new ArrayList(10);
         v.Add(IntArrayData);
         v.Add(StringArrayData);
         cls.SetId(i);
         cls.SetVect(v);
         objectContainer.Store(cls);
     }
 }
コード例 #2
0
        protected override void AssertObjectsAreReadable(IExtObjectContainer objectContainer
                                                         )
        {
            IObjectSet objectSet = objectContainer.Query(typeof(FreespaceManagerMigrationTestCase.StClass
                                                                ));

            for (int i = 0; i < 2; i++)
            {
                FreespaceManagerMigrationTestCase.StClass cls = (FreespaceManagerMigrationTestCase.StClass
                                                                 )objectSet.Next();
                ArrayList v        = cls.GetVect();
                int[][]   intArray = (int[][])v[0];
                ArrayAssert.AreEqual(IntArrayData[0], intArray[0]);
                ArrayAssert.AreEqual(IntArrayData[1], intArray[1]);
                string[][] stringArray = (string[][])v[1];
                ArrayAssert.AreEqual(StringArrayData[0], stringArray[0]);
                ArrayAssert.AreEqual(StringArrayData[1], stringArray[1]);
                objectContainer.Delete(cls);
            }
        }
コード例 #3
0
		protected override void Store(IObjectContainerAdapter objectContainer)
		{
			for (int i = 0; i < 10; i++)
			{
				FreespaceManagerMigrationTestCase.StClass cls = new FreespaceManagerMigrationTestCase.StClass
					();
				ArrayList v = new ArrayList(10);
				v.Add(IntArrayData);
				v.Add(StringArrayData);
				cls.SetId(i);
				cls.SetVect(v);
				objectContainer.Store(cls);
			}
		}