public void DisplayProperties(TestSuiteTreeNode node) { this.node = node; this.test = node.Test; this.result = node.Result; SetTitleBarText(); // Initialize Test Tab fullName.Text = test.FullName; shouldRun.Text = test.ShouldRun ? "Yes" : "No"; description.Text = test.Description; ignoreReason.Text = test.IgnoreReason; testCaseCount.Text = test.CountTestCases().ToString(); // Initialize Result Tab if (result == null || !result.Executed) { tabControl1.TabPages.Remove(resultsTab); } else { if (!tabControl1.TabPages.Contains(resultsTab)) { tabControl1.TabPages.Add(resultsTab); } testResult.Text = result.IsSuccess ? "Success" : "Failure"; // message may have a leading blank line // TODO: take care of this in label? message.Text = TrimLeadingBlankLines(result.Message); elapsedTime.Text = string.Format("Time: {0}", result.Time); assertCount.Text = string.Format("Asserts: {0}", result.AssertCount); stackTrace.Text = result.StackTrace; } }
private void Initialize(ITest test) { Initialize(test.CountTestCases()); }