private bool Equals(ReportStatus other) { return string.Equals(Name, other.Name) && string.Equals(DescribingText, other.DescribingText); }
public abstract bool IsWorseThan(ReportStatus status);
public override bool IsWorseThan(ReportStatus status) { return status is NotRunned; }
public override bool IsWorseThan(ReportStatus status) { return false; }
public override bool IsWorseThan(ReportStatus status) { return !(status is Failed) && !(status is Error); }
/// <summary> /// Initializes the values for Text and ShortText. /// </summary> private void InitializeTexts(MethodInfo method, ReportStatus status, Exception raisedException) { string commonText = "The " + method.Name + "-Method " + status.DescribingText; ShortText = commonText + "."; Text = commonText + ( raisedException == null ? "." : ": " + raisedException.Message); }