public TestSuiteElement (TestSuite test, TouchRunner runner) : base (test, runner) { Caption = Suite.Name; int count = Suite.TestCaseCount; if (count > 0) { Accessory = UITableViewCellAccessory.DisclosureIndicator; DetailColor = DarkGreen; Value = String.Format ("{0} test case{1}, {2}", count, count == 1 ? String.Empty : "s", Suite.RunState); Tapped += delegate { runner.Show (Suite); }; } else { DetailColor = Orange; Value = "No test was found inside this suite"; } }
public TestSuiteElement (TestSuite test, TouchRunner runner) : base (test, runner) { Caption = Suite.Name; int count = Suite.TestCaseCount; if (count > 0) { Accessory = UITableViewCellAccessory.DisclosureIndicator; DetailColor = DarkGreen; Value = String.Format ("{0} test case{1}, {2}", count, count == 1 ? String.Empty : "s", Suite.RunState); Tapped += delegate { runner.Show (Suite); }; } else { DetailColor = UIColor.Orange; Value = "No test found inside the assembly"; } }