Exemple #1
0
 public Assertion(string description, string value, AssertionType assertionType, AssertionMethod assertionMethod)
 {
     Description     = description;
     Value           = value;
     AssertionType   = assertionType;
     AssertionMethod = assertionMethod;
 }
Exemple #2
0
 public void LogException(AssertionMethod method, Exception e)
 {
     _logger.WriteLine("- Invalid {0}: {1}", method, e.Message);
 }
Exemple #3
0
 public void LogSuccess(AssertionType assertionType, string value, AssertionMethod method)
 {
     _logger.WriteLine("- {0} verification successful: the {1} \"{2}\" matched.", assertionType, method, value);
 }
Exemple #4
0
 public void LogFail(AssertionType assertionType, string value, AssertionMethod method)
 {
     _logger.WriteLine("- {0} verification failed: the {1} \"{2}\" did not match.", assertionType, method, value);
 }
 public void SetUp()
 {
     sut = new AssertionMethod(new SourceAddress(), "method");
 }