示例#1
0
        public void Test1()
        {
            var vm      = new VirtualMachine();
            var process = new EnumProces();

            Assert.AreEqual(process.GetEnum1(1), vm.StartTestExecution <EnumTestStatus>("GetEnum1", process, 1));
            Assert.AreEqual(process.GetEnum1(-1), vm.StartTestExecution <EnumTestStatus>("GetEnum1", process, -1));
        }
示例#2
0
        public void Test2()
        {
            var vm      = new VirtualMachine();
            var process = new EnumProces();

            var ret = vm.StartTestExecution <int>("Test2", process, 2);

            Assert.AreEqual(process.Test2(2), ret);

            Assert.AreEqual(process.Test3(RuleTypeEnum.ToChooseProcess), vm.StartTestExecution <int>("Test3", process, RuleTypeEnum.ToChooseProcess));
        }