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

Fixed tests performance.

parent 10f4d0ce
......@@ -49,12 +49,11 @@ namespace NLuaTest
public void Setup()
{
lua = new Lua ();
lua.RegisterFunction ("WriteLineString", typeof (Console).GetMethod ("WriteLine", new Type [] { typeof (String) }));
lua.DoString (@"
luanet.load_assembly ('System')
Console = luanet.import_type ('System.Console')
function print (...)
Console.WriteLine (...)
function print (param)
WriteLineString (tostring(param))
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