while (!coll.TryAdd (i));
bool state = true;
+ bool ran = false;
Assert.AreEqual ((count + delta) * threads, coll.Count, "#0");
ParallelTestHelper.ParallelStressTest (coll, (q) => {
+ ran = true;
bool s = true;
int t;
if (!s)
state = false;
}, threads);
-
+
+ Assert.IsTrue (ran, "#1-pre");
Assert.IsTrue (state, "#1");
Assert.AreEqual (delta * threads, coll.Count, "#2");