Skip to content

Commit

Permalink
Add: Test for last issue
Browse files Browse the repository at this point in the history
Chg: Version Add
  • Loading branch information
neolithos committed Aug 5, 2016
1 parent c497270 commit ccf5184
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 3 deletions.
34 changes: 34 additions & 0 deletions NeoLua.Test/LuaTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,40 @@ public void TestConcat02()

#endregion

#region -- Get Member Test --------------------------------------------------------

public class LuaTableFirst : LuaTable
{
[LuaMember("Foo")]
private void LuaFoo()
{
Console.WriteLine("{0}:Foo() called", GetType().Name);
}
}

public class LuaTableSecond : LuaTableFirst
{
}

[TestMethod]
public void TestGetMemberBind()
{
var a = new LuaTableFirst();
var b = new LuaTableSecond();

using (var l = new Lua())
{
var g = l.CreateEnvironment();
g["a"] = a;
g["b"] = b;

g.DoChunk("b.Foo(); a.Foo()", "test.lua");
}
}

#endregion


[TestMethod]
public void EnvDynamicCall01()
{
Expand Down
6 changes: 3 additions & 3 deletions NeoLua/Properties/AssemblyInfoGlobal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
[assembly: AssemblyTrademark("")]

[assembly: AssemblyVersion("5.3.0.0")]
[assembly: AssemblyFileVersion("1.2.7.0")]
//[assembly: AssemblyConfiguration("")]
[assembly: AssemblyConfiguration("beta")]
[assembly: AssemblyFileVersion("1.2.8.0")]
[assembly: AssemblyConfiguration("")]
//[assembly: AssemblyConfiguration("beta")]

0 comments on commit ccf5184

Please sign in to comment.