void Instance_AfterPerformTestCase(object sender, TestCaseEventArgs e) { ListViewItem item = GetItemByTestSetInfo(e.TestSetInfo); item.SubItems[3].Text = string.Format("{0} ms.", e.TestCaseInfo.ElapsedMilliseconds); item.SubItems[4].Text = string.Format("{0} KB", (e.TestCaseInfo.MemoryUsage / 1024).ToString("###,###,##0")); Exception ex = e.TestCaseInfo.Exception; if (ex != null) { item.SubItems[2].Text = "Failed: " + ex.Message; item.ImageIndex = 2; exceptionBuffer.AppendLine(ex.ToString()); exceptionBuffer.AppendLine(); grid.Show(); cellDebug.Show(); cellDebug.Location = new Point(this.Right + 1, this.Top + 1); borderDebug.Show(); borderDebug.Location = new Point(this.Right + 1, cellDebug.Bottom + 1); } else if (item.ImageIndex != 2) { item.SubItems[2].Text = "Success"; item.ImageIndex = 1; } Application.DoEvents(); }