public void NoArgumentMethod()
        {
            MethodInfo mi = typeof(HelloWorld).GetMethod("NoArgument");
            MethodRunInvoker invoker = new MethodRunInvoker(new MockRun(), mi);
            HelloWorld hw = new HelloWorld();
            invoker.Execute(hw,new ArrayList());

            Assert.IsTrue(hw.Executed);
        }
        public void OneArgumentMethod()
        {
            MethodInfo mi = typeof(HelloWorld).GetMethod("OneArgument");
            MethodRunInvoker invoker = new MethodRunInvoker(new MockRun(), mi);
            HelloWorld hw = new HelloWorld();

            ArrayList args = new ArrayList();
            args.Add("Hello");
            invoker.Execute(hw,args);

            Assert.IsTrue(hw.Executed);
            Assert.AreEqual(args[0], hw.Arg);
        }