public ExpressionNormalizerTests()
        {
            m_Customer1.Id = 0;
            m_Customer2.Id = 1;

            m_Vm = new GossipVM();
            m_Vm.RegisterGlobalFunction("GetAccount", new Func<Account>(GetAccount));
            m_Vm.RegisterGlobalFunction("GetCustomer", new Func<Int32, Customer>(GetCustomer));

            m_Vm.RegisterType(typeof(Customer));
            m_Vm.RegisterType(typeof(Account));
        }
        public PerformanceTest()
        {
            m_Vm = new GossipVM();
            m_Vm.RegisterGlobalFunction("GetCustomer", new Func<Int32, Customer>(GetCustomer));

            m_Vm.RegisterType(typeof(Customer));
            m_Vm.RegisterType(typeof(Account));
        }
        public void TestFixtureSetup()
        {
            m_Customer1.Id = 1;
            m_Customer2.Id = 2;
            m_Customer1.Name = "Joe";
            m_Customer2.Name = "Jane";

            m_Customer1.Account.Name = "Cheque";
            m_Customer2.Account.Name = "Savings";

            m_Vm = new GossipVM();

            m_Vm.RegisterGlobalAction("dialog", new ActionInfo("Say", Say, null, null));
            m_Vm.RegisterGlobalAction("dialog", new ActionInfo("AddResponse", AddResponse, null, null));
            m_Vm.RegisterGlobalAction("dialog", new ActionInfo("GotoLabel", GotoLabel, null, null));
            m_Vm.RegisterGlobalAction("dialog", new ActionInfo("Interject", Interject, null, null));

            m_Vm.RegisterGlobalAction("test", new ActionInfo("NoParams", NoParams));

            m_Vm.RegisterGlobalFunction("GetAccount", new Func<Account>(GetAccount));
            m_Vm.RegisterGlobalFunction("GetCustomer", new Func<Int32, Customer>(GetCustomer));

            m_Vm.RegisterType(typeof (Customer));
            m_Vm.RegisterType(typeof (Account));
            m_Vm.RegisterEnum("TEST_ENUM", 1);
        }