public void ExceptionNull() { ConditionalExceptionRunInvoker einvoker = new ConditionalExceptionRunInvoker(new ThrowExceptionRunInvoker(null) , null , "Description" , "ShouldThrow"); }
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); }
public void InvokerNull() { ConditionalExceptionRunInvoker einvoker = new ConditionalExceptionRunInvoker(null, typeof(Exception), "Description", "ShouldThrow"); }