Пример #1
0
 /// <summary>
 /// Returns the text reflecting actual state.
 /// </summary>
 /// <returns></returns>
 public override string ToString()
 {
     if (_actualText == null)
     {
         return($"expected: {Expectation.Format(_formattingService)}");
     }
     if (_result.IsValid)
     {
         return($"{_actualText}");
     }
     return($"expected: {Expectation.Format(_formattingService)}, but got: '{_actualText}'");
 }