private static void TestWorker(Object param) { Utils.TestThreadConf conf = (Utils.TestThreadConf) param; int loop = System.Convert.ToInt32(conf.param); int users_per_iteration = 2; try { Users usr = new Users(Utils.GetConfigNodes()); while (loop-- > 0) { usr.TestCycle(users_per_iteration); } } catch (Exception e) { lock (conf.exceptionsCatched) { conf.exceptionsCatched.Add(e); } } }
public void SimpleTest() { Users usr = new Users(Utils.GetConfigNodes()); usr.EmptyAll(); usr.InsertUsers(1000); // bug ? long cnt = usr.CountUsers(); usr.SubmitAll(); usr.TestCycle(500); Assert.IsTrue(usr.IsConsistent()); }