コード例 #1
0
        public virtual void Test()
        {
            ItemDates item1 = new ItemDates(new DateTime(0), new DateTime());
            ItemDates item2 = new ItemDates(new DateTime(10000), new DateTime(Runtime.CurrentTimeMillis
                                                                                  () - 10000));

            A().Provider().StoreNew(item1);
            A().Provider().StoreNew(item2);
            A().Provider().Commit();
            ReplicateAll(A().Provider(), B().Provider());
            IObjectSet found = B().Provider().GetStoredObjects(typeof(ItemDates));

            Iterator4Assert.SameContent(new object[] { item2, item1 }, ReplicationTestPlatform
                                        .Adapt(found.GetEnumerator()));
        }
コード例 #2
0
 internal static IEnumerator Adapt(IEnumerator iterator)
 {
     return(ReplicationTestPlatform.Adapt(iterator));
 }