public void Message() { VerifyException e = new VerifyException("Boo", "<Wee>", 44); Assertion.AssertEquals("Boo\nexpected:<Wee>\n but was:<44>", e.Message); Assertion.AssertEquals("Boo", e.Reason); Assertion.AssertEquals("<Wee>", e.Expected); Assertion.AssertEquals(44, e.Actual); }
public override object Invoke(string methodName, params object[] args) { try { return base.Invoke(methodName, args); } catch (VerifyException verifyException) { ex = verifyException; throw; } finally { if (signalMethods.Contains(methodName)) { latch.Set(); } } }