Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
NLua
Commits
a9e66cf4
Commit
a9e66cf4
authored
Sep 24, 2014
by
Vinicius Jarina
Browse files
Fixed tests performance.
parent
10f4d0ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/Core.cs
View file @
a9e66cf4
...
@@ -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
"
);
"
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment