Beispiel #1
0
        public void BeginTestCase(string harnessName, string assemblyName)
        {
            bridge.BeginTestCase(harnessName, assemblyName);
            var theHarness = bridge.TestHarness();

            LuaUtil.PublishObjectMethods(theHarness, LuaEnv);
        }
Beispiel #2
0
 public List <TestResult> Run()
 {
     LuaUtil.PublishObjectMethods(api, luaEnv);
     api.LuaEnv = luaEnv;
     luaEnv.DoChunk(myChunk);
     api.ExecTestCase();
     return(api.TestResults());
 }
Beispiel #3
0
        public List <AssertResult> Execute()
        {
            if (luaEnv["ExecuteTest"] == null)
            {
                throw new InvalidOperationException("env has no method called ExecuteTest. Don't know what to do with this.");
            }

            LuaUtil.PublishObjectMethods(this, luaEnv);
            res.Clear();
            luaEnv.ExecuteTest();
            return(res);
        }