public void ThreadRecordTest() { threadRecord thr = new threadRecord(); Assert.AreEqual(thr.methods.Count(), 0); thr.addMethodRecord(tr1); Assert.AreEqual(tr1.count, thr.methods[0].executionTimes); Assert.AreEqual(tr1.getAvgs(), thr.methods[0].avgTimeMilis); Assert.AreEqual(tr1.getAvg(), thr.methods[0].avgTimeTicks); Assert.AreEqual(thr.methods.Count(), 1); Assert.AreEqual(0, thr.methods[0].methods.Count()); thr.addMethodRecord(tr2); Assert.AreEqual(1, thr.methods.Count()); Assert.AreEqual(1, thr.methods[0].methods.Count()); Assert.AreEqual("method3", thr.methods[0].methods[0].fullName); Assert.AreEqual(rnd.GetType().ToString(), thr.methods[0].methods[0].classname); }