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())); }
internal static IEnumerator Adapt(IEnumerator iterator) { return(ReplicationTestPlatform.Adapt(iterator)); }