internal TestResultWithErrors (TestContext context, TestResult result)
		{
			this.result = result;
			children = new List<TestResultItem> ();
			children.Add (result);
			children.AddRange (context.Errors);
			context.ClearErrors ();
		}
		public void AddChild (TestResult child)
		{
			children.Add (child);
		}
		NSColor ColorForResult (TestResult result)
		{
			switch (result.Status) {
			case TestStatus.Success:
				return NSColor.Blue;
			case TestStatus.Error:
				return NSColor.Red;
			case TestStatus.Warning:
				return NSColor.Brown;
			default:
				return NSColor.Gray;
			}
		}
		string StateForResult (TestResult result)
		{
			switch (result.Status) {
			case TestStatus.Success:
				return "Pass";
			case TestStatus.Error:
				return "Fail";
			case TestStatus.Warning:
				return "Warning";
			default:
				return string.Empty;
			}
		}