Commit a9e66cf4 authored by Vinicius Jarina's avatar Vinicius Jarina
Browse files

Fixed tests performance.

parent 10f4d0ce
...@@ -49,12 +49,11 @@ namespace NLuaTest ...@@ -49,12 +49,11 @@ namespace NLuaTest
public void Setup() public void Setup()
{ {
lua = new Lua (); lua = new Lua ();
lua.RegisterFunction ("WriteLineString", typeof (Console).GetMethod ("WriteLine", new Type [] { typeof (String) }));
lua.DoString (@" lua.DoString (@"
luanet.load_assembly ('System') function print (param)
Console = luanet.import_type ('System.Console') WriteLineString (tostring(param))
function print (...)
Console.WriteLine (...)
end end
"); ");
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment