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