Ejemplo n.º 1
0
 public Assertion(string description, string value, AssertionType assertionType, AssertionMethod assertionMethod)
 {
     Description     = description;
     Value           = value;
     AssertionType   = assertionType;
     AssertionMethod = assertionMethod;
 }
Ejemplo n.º 2
0
 public void LogException(AssertionMethod method, Exception e)
 {
     _logger.WriteLine("- Invalid {0}: {1}", method, e.Message);
 }
Ejemplo n.º 3
0
 public void LogSuccess(AssertionType assertionType, string value, AssertionMethod method)
 {
     _logger.WriteLine("- {0} verification successful: the {1} \"{2}\" matched.", assertionType, method, value);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 5
0
 public void SetUp()
 {
     sut = new AssertionMethod(new SourceAddress(), "method");
 }