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