Example #1
0
 /// <exception cref="System.Exception"></exception>
 public virtual void CheckUpdateSameObject(IExtObjectContainer oc)
 {
     IQuery query = oc.Query();
     query.Descend("_s").Constrain(testString + Count / 2);
     IObjectSet result = query.Execute();
     Assert.AreEqual(1, result.Count);
     SimpleObject o = (SimpleObject)result.Next();
     int i = o.GetI();
     Assert.IsTrue(Count <= i && i < Count + ThreadCount());
 }
Example #2
0
 /// <exception cref="System.Exception"></exception>
 public virtual void CheckUpdateDifferentObject(IExtObjectContainer oc)
 {
     IObjectSet result = oc.Query(typeof(SimpleObject));
     Assert.AreEqual(Count, result.Count);
     while (result.HasNext())
     {
         SimpleObject o = (SimpleObject)result.Next();
         int i = o.GetI();
         if (i >= Count)
         {
             i -= Count;
         }
         Assert.AreEqual(testString + i, o.GetS());
     }
 }