Example #1
0
        protected ExpectedExceptionRunInvoker ExecuteInvoker(Type expectedType, Exception ex)
        {
            ThrowExceptionRunInvoker    invoker  = new ThrowExceptionRunInvoker(ex);
            ExpectedExceptionRunInvoker einvoker =
                new ExpectedExceptionRunInvoker(invoker, expectedType, description);
            ArrayList list = new ArrayList();

            einvoker.Execute(null, list);
            Assert.IsTrue(invoker.Invoked);
            return(einvoker);
        }