protected void ExecuteInvoker(Type expectedType, Exception ex, bool shouldThrow)
 {
     ThrowExceptionRunInvoker invoker = new ThrowExceptionRunInvoker(ex);
     ConditionalExceptionRunInvoker einvoker =
         new ConditionalExceptionRunInvoker(invoker, expectedType,"Description", "ShouldThrow");
     ArrayList list = new ArrayList();
     list.Add(shouldThrow);
     ThrowOracle oracle = new ThrowOracle();
     einvoker.Execute(oracle, list);
     Assert.IsTrue(invoker.Invoked);
 }
        protected void ExecuteInvoker(Type expectedType, Exception ex, bool shouldThrow)
        {
            ThrowExceptionRunInvoker       invoker  = new ThrowExceptionRunInvoker(ex);
            ConditionalExceptionRunInvoker einvoker =
                new ConditionalExceptionRunInvoker(invoker, expectedType, "Description", "ShouldThrow");
            ArrayList list = new ArrayList();

            list.Add(shouldThrow);
            ThrowOracle oracle = new ThrowOracle();

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