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
be9f0df6
Commit
be9f0df6
authored
Mar 12, 2013
by
Vinicius Jarina
Browse files
Renamed LuaInterface -> NLua
parent
2e203153
Changes
89
Expand all
Hide whitespace changes
Inline
Side-by-side
ios/Lua
Interface
TestsiOS/Main.cs
→
ios/
N
LuaTestsiOS/Main.cs
View file @
be9f0df6
...
@@ -5,7 +5,7 @@ using System.Linq;
...
@@ -5,7 +5,7 @@ using System.Linq;
using
MonoTouch.Foundation
;
using
MonoTouch.Foundation
;
using
MonoTouch.UIKit
;
using
MonoTouch.UIKit
;
namespace
Lua
Interface
TestsiOS
namespace
N
LuaTestsiOS
{
{
public
class
Application
public
class
Application
{
{
...
...
ios/Lua
Interface
TestsiOS/Lua
Interface
Test.csproj
→
ios/
N
LuaTestsiOS/
N
LuaTest.csproj
View file @
be9f0df6
...
@@ -8,9 +8,9 @@
...
@@ -8,9 +8,9 @@
<ProjectGuid>
{2DC0E43A-21B8-41FF-8793-60AB50350977}
</ProjectGuid>
<ProjectGuid>
{2DC0E43A-21B8-41FF-8793-60AB50350977}
</ProjectGuid>
<ProjectTypeGuids>
{6BC8ED88-2882-458C-8E55-DFD12B67127B};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
</ProjectTypeGuids>
<ProjectTypeGuids>
{6BC8ED88-2882-458C-8E55-DFD12B67127B};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
</ProjectTypeGuids>
<OutputType>
Exe
</OutputType>
<OutputType>
Exe
</OutputType>
<RootNamespace>
Lua
Interface
Test
</RootNamespace>
<RootNamespace>
N
LuaTest
</RootNamespace>
<IPhoneResourcePrefix>
Resources
</IPhoneResourcePrefix>
<IPhoneResourcePrefix>
Resources
</IPhoneResourcePrefix>
<AssemblyName>
Lua
Interface
Test
</AssemblyName>
<AssemblyName>
N
LuaTest
</AssemblyName>
</PropertyGroup>
</PropertyGroup>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Debug|iPhoneSimulator' "
>
<PropertyGroup
Condition=
" '$(Configuration)|$(Platform)' == 'Debug|iPhoneSimulator' "
>
<DebugSymbols>
True
</DebugSymbols>
<DebugSymbols>
True
</DebugSymbols>
...
@@ -126,9 +126,9 @@
...
@@ -126,9 +126,9 @@
</ItemGroup>
</ItemGroup>
<Import
Project=
"$(MSBuildBinPath)\Microsoft.CSharp.targets"
/>
<Import
Project=
"$(MSBuildBinPath)\Microsoft.CSharp.targets"
/>
<ItemGroup>
<ItemGroup>
<ProjectReference
Include=
"..\..\Core\Lua
Interface\LuaInterface
.IOS.csproj"
>
<ProjectReference
Include=
"..\..\Core\
N
Lua
\NLua
.IOS.csproj"
>
<Project>
{7064B157-DD57-4828-94C5-CA149B25CB40}
</Project>
<Project>
{7064B157-DD57-4828-94C5-CA149B25CB40}
</Project>
<Name>
Lua
Interface
.IOS
</Name>
<Name>
N
Lua.IOS
</Name>
</ProjectReference>
</ProjectReference>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
...
...
ios/Lua
Interface
TestsiOS/UnitTestAppDelegate.cs
→
ios/
N
LuaTestsiOS/UnitTestAppDelegate.cs
View file @
be9f0df6
...
@@ -6,7 +6,7 @@ using MonoTouch.Foundation;
...
@@ -6,7 +6,7 @@ using MonoTouch.Foundation;
using
MonoTouch.UIKit
;
using
MonoTouch.UIKit
;
using
MonoTouch.NUnit.UI
;
using
MonoTouch.NUnit.UI
;
namespace
Lua
Interface
TestsiOS
namespace
N
LuaTestsiOS
{
{
// The UIApplicationDelegate for the application. This class is responsible for launching the
// The UIApplicationDelegate for the application. This class is responsible for launching the
// User Interface of the application, as well as listening (and optionally responding) to
// User Interface of the application, as well as listening (and optionally responding) to
...
...
run_all.linux.sh
View file @
be9f0df6
...
@@ -10,7 +10,7 @@ cd Core/KeraLua/
...
@@ -10,7 +10,7 @@ cd Core/KeraLua/
make
-f
Makefile.Linux
make
-f
Makefile.Linux
xbuild KeraLua.sln /p:Configuration
=
Release
xbuild KeraLua.sln /p:Configuration
=
Release
cd
../../
cd
../../
xbuild Lua
Interface
.sln /p:Configuration
=
Release
xbuild
N
Lua.sln /p:Configuration
=
Release
export
LD_LIBRARY_PATH
=
$PWD
/Core/KeraLua/external/lua/linux/lib64
export
LD_LIBRARY_PATH
=
$PWD
/Core/KeraLua/external/lua/linux/lib64
cd
tests/
cd
tests/
nunit-console Lua
Interface
Test.dll
nunit-console
N
LuaTest.dll
run_all.osx.sh
View file @
be9f0df6
...
@@ -4,6 +4,6 @@ make -f Makefile.OSX
...
@@ -4,6 +4,6 @@ make -f Makefile.OSX
xbuild KeraLua.sln /p:Configuration
=
Release
xbuild KeraLua.sln /p:Configuration
=
Release
cd
../../
cd
../../
cp
Core/KeraLua/external/lua/osx/lib/liblua51.dylib tests/liblua51.dylib
cp
Core/KeraLua/external/lua/osx/lib/liblua51.dylib tests/liblua51.dylib
xbuild Lua
Interface
.sln /p:Configuration
=
Release
xbuild
N
Lua.sln /p:Configuration
=
Release
cd
tests/
cd
tests/
nunit-console Lua
Interface
Test.dll
-xml
=
$1
nunit-console
N
LuaTest.dll
-xml
=
$1
run_all.win32.bat
View file @
be9f0df6
cd
Core
/
KeraLua
cd
Core
\
KeraLua
Makefile
.Win32.bat
Makefile
.Win32.bat
msbuild
KeraLua
.sln
/p
:Configuration
=
Release
msbuild
KeraLua
.sln
/p
:Configuration
=
Release
cd
..\..
xcopy
Core
\KeraLua\external\lua\win32\bin\
*
.dll
tests
\
*
.dll
xcopy
Core
\KeraLua\external\lua\win32\bin\
*
.dll
tests
\
*
.dll
msbuild
Lua
Interface
.sln
/p
:Configuration
=
Release
msbuild
N
Lua
.sln
/p
:Configuration
=
Release
cd
tests
/
cd
tests
/
nunit
-console
Lua
Interface
Test
.dll
-
xml
=
$1
nunit
-console
N
LuaTest
.dll
/
xml
=
$1
tests/Entity.cs
View file @
be9f0df6
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Text
;
using
System.Text
;
namespace
Lua
Interface
Test.Mock
namespace
N
LuaTest.Mock
{
{
public
class
Entity
public
class
Entity
{
{
...
...
tests/LuaTests.cs
View file @
be9f0df6
This diff is collapsed.
Click to expand it.
tests/TestLua.cs
View file @
be9f0df6
//note: this should be cleaned up and replaced with moq mocks where possible
//note: this should be cleaned up and replaced with moq mocks where possible
namespace
Lua
Interface
Test.Mock
namespace
N
LuaTest.Mock
{
{
using
System
;
using
System
;
using
Lua
Interface
;
using
N
Lua
;
using
System.Threading
;
using
System.Threading
;
using
System.Diagnostics
;
using
System.Diagnostics
;
using
System.Reflection
;
using
System.Reflection
;
...
@@ -27,7 +27,7 @@ namespace LuaInterfaceTest.Mock
...
@@ -27,7 +27,7 @@ namespace LuaInterfaceTest.Mock
/* Delegate Lua-handlers */
/* Delegate Lua-handlers */
class
LuaTestDelegate1Handler
:
Lua
Interface
.
Method
.
LuaDelegate
class
LuaTestDelegate1Handler
:
N
Lua
.
Method
.
LuaDelegate
{
{
int
CallFunction
(
int
a
,
int
b
)
int
CallFunction
(
int
a
,
int
b
)
{
{
...
@@ -41,7 +41,7 @@ namespace LuaInterfaceTest.Mock
...
@@ -41,7 +41,7 @@ namespace LuaInterfaceTest.Mock
}
}
}
}
class
LuaTestDelegate2Handler
:
Lua
Interface
.
Method
.
LuaDelegate
class
LuaTestDelegate2Handler
:
N
Lua
.
Method
.
LuaDelegate
{
{
int
CallFunction
(
int
a
,
out
int
b
)
int
CallFunction
(
int
a
,
out
int
b
)
{
{
...
@@ -56,7 +56,7 @@ namespace LuaInterfaceTest.Mock
...
@@ -56,7 +56,7 @@ namespace LuaInterfaceTest.Mock
}
}
}
}
class
LuaTestDelegate3Handler
:
Lua
Interface
.
Method
.
LuaDelegate
class
LuaTestDelegate3Handler
:
N
Lua
.
Method
.
LuaDelegate
{
{
void
CallFunction
(
int
a
,
ref
int
b
)
void
CallFunction
(
int
a
,
ref
int
b
)
{
{
...
@@ -70,7 +70,7 @@ namespace LuaInterfaceTest.Mock
...
@@ -70,7 +70,7 @@ namespace LuaInterfaceTest.Mock
}
}
}
}
class
LuaTestDelegate4Handler
:
Lua
Interface
.
Method
.
LuaDelegate
class
LuaTestDelegate4Handler
:
N
Lua
.
Method
.
LuaDelegate
{
{
TestClass
CallFunction
(
int
a
,
int
b
)
TestClass
CallFunction
(
int
a
,
int
b
)
{
{
...
@@ -84,7 +84,7 @@ namespace LuaInterfaceTest.Mock
...
@@ -84,7 +84,7 @@ namespace LuaInterfaceTest.Mock
}
}
}
}
class
LuaTestDelegate5Handler
:
Lua
Interface
.
Method
.
LuaDelegate
class
LuaTestDelegate5Handler
:
N
Lua
.
Method
.
LuaDelegate
{
{
int
CallFunction
(
TestClass
a
,
TestClass
b
)
int
CallFunction
(
TestClass
a
,
TestClass
b
)
{
{
...
@@ -98,7 +98,7 @@ namespace LuaInterfaceTest.Mock
...
@@ -98,7 +98,7 @@ namespace LuaInterfaceTest.Mock
}
}
}
}
class
LuaTestDelegate6Handler
:
Lua
Interface
.
Method
.
LuaDelegate
class
LuaTestDelegate6Handler
:
N
Lua
.
Method
.
LuaDelegate
{
{
int
CallFunction
(
int
a
,
ref
TestClass
b
)
int
CallFunction
(
int
a
,
ref
TestClass
b
)
{
{
...
@@ -113,7 +113,7 @@ namespace LuaInterfaceTest.Mock
...
@@ -113,7 +113,7 @@ namespace LuaInterfaceTest.Mock
}
}
}
}
class
LuaTestDelegate7Handler
:
Lua
Interface
.
Method
.
LuaDelegate
class
LuaTestDelegate7Handler
:
N
Lua
.
Method
.
LuaDelegate
{
{
void
CallFunction
(
int
a
,
ref
TestClass
b
)
void
CallFunction
(
int
a
,
ref
TestClass
b
)
{
{
...
...
Prev
1
2
3
4
5
Next
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