public override void Update ()
{
if (Result.IsIgnored ()) {
Caption = String.Format ("<b>{0}</b>:\n <font color='#FF7700'>{1}</font>",
TestCase.FullName, Result.GetMessage());
} else if (Result.IsSuccess () || Result.IsInconclusive ()) {
int counter = Result.AssertCount;
Caption = String.Format ("<b>{0}</b>:\n <font color='green'>{1} {2} ms for {3} assertion{4}</font>",
TestCase.FullName,
Result.IsInconclusive () ? "Inconclusive." : "Success!",
Result.Duration.TotalMilliseconds, counter,
counter == 1 ? String.Empty : "s");
} else if (Result.IsFailure ()) {
Caption = String.Format("<b>{0}</b>:\n <font color='red'>{1}</font>", TestCase.FullName, Result.GetMessage ());
} else {
// Assert.Ignore falls into this
Caption = Result.GetMessage ();
}
SetCaption(Caption);
}