示例#1
0
		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);
		}
示例#2
0
        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);
        }
示例#3
0
 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();
         }
     }
 }