Exemple #1
0
 private bool Equals(ReportStatus other)
 {
     return string.Equals(Name, other.Name) && string.Equals(DescribingText, other.DescribingText);
 }
Exemple #2
0
 public abstract bool IsWorseThan(ReportStatus status);
Exemple #3
0
 public override bool IsWorseThan(ReportStatus status)
 {
     return status is NotRunned;
 }
Exemple #4
0
 public override bool IsWorseThan(ReportStatus status)
 {
     return false;
 }
Exemple #5
0
 public override bool IsWorseThan(ReportStatus status)
 {
     return !(status is Failed) && !(status is Error);
 }
Exemple #6
0
 /// <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);
 }