"packages/Codefoco.Touch.Server.1.0.19/LICENSE" did not exist on "b6d3b8a24192286c7161d28ba6c194483707feae"
Commit 4aafb587 authored by Vinicius Jarina's avatar Vinicius Jarina
Browse files

Disable Linking (fix NSUrl test)

Added string property test.
parent 25f6cbf2
......@@ -34,11 +34,11 @@ namespace NLua.Config
#else
public const string NLuaConfiguration = "Release";
#endif
public const string NLuaCompany = "NLua Productions";
public const string NLuaCompany = "NLua.org";
public const string NLuaProduct = "NLua";
public const string NLuaCopyright = "Copyright 2003-2008 Fabio Mascarenhas, Kevin Hesterm ,Megax and Vinicius Jarina";
public const string NLuaCopyright = "Copyright 2003-2013 Vinicius Jarina , Fabio Mascarenhas, Kevin Hesterm and Megax";
public const string NLuaTrademark = "MIT license";
public const string NLuaVersion = "2.0.4";
public const string NLuaFileVersion = "2.0.4.0";
public const string NLuaVersion = "1.0.0";
public const string NLuaFileVersion = "1.0.0.0";
}
}
\ No newline at end of file
......@@ -344,7 +344,7 @@ namespace NLua
return true;
//CP: Removed NonPublic binding search
var members = objType.GetMember (methodName, BindingFlags.Static | BindingFlags.Instance | BindingFlags.Public | BindingFlags.IgnoreCase/* | BindingFlags.NonPublic*/);
var members = objType.GetMember (methodName, BindingFlags.Static | BindingFlags.Instance | BindingFlags.Public | BindingFlags.IgnoreCase);
return (members.Length > 0);
}
......
......@@ -39,6 +39,7 @@
<MtouchUseSGen>True</MtouchUseSGen>
<MtouchUseRefCounting>True</MtouchUseRefCounting>
<DefineConstants>MONOTOUCH</DefineConstants>
<MtouchLink>None</MtouchLink>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhone' ">
<DebugSymbols>True</DebugSymbols>
......@@ -71,6 +72,7 @@
<MtouchUseLlvm>True</MtouchUseLlvm>
<MtouchUseSGen>True</MtouchUseSGen>
<MtouchUseRefCounting>True</MtouchUseRefCounting>
<MtouchLink>None</MtouchLink>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Ad-Hoc|iPhone' ">
<DebugType>none</DebugType>
......
......@@ -900,6 +900,23 @@ namespace NLuaTest
//Console.WriteLine("new val (from Lua)="+t1.testval);
}
}
[Test]
public void AccessObjectStringProperty ()
{
using (Lua lua = new Lua ()) {
TestClass t1 = new TestClass ();
t1.teststrval = "This is a string test";
lua ["netobj"] = t1;
lua.DoString ("var=netobj.teststrval");
string var = (string)lua ["var"];
Assert.AreEqual ("This is a string test", var);
lua.DoString ("netobj.teststrval='Another String'");
Assert.AreEqual ("Another String", t1.teststrval);
//Console.WriteLine("new val (from Lua)="+t1.testval);
}
}
/*
* Tests calling of an object's method with no overloads
*/
......
......@@ -345,6 +345,15 @@ namespace NLuaTest.Mock
}
}
public string teststrval {
get {
return this.strVal;
}
set {
this.strVal = value;
}
}
public int this [int index] {
get { return 1; }
set { }
......
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