From: <fab...@us...> - 2011-04-07 17:30:52
|
Revision: 5630 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5630&view=rev Author: fabiomaulo Date: 2011-04-07 17:30:46 +0000 (Thu, 07 Apr 2011) Log Message: ----------- passing test for NH-2628 Modified Paths: -------------- trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj Added Paths: ----------- trunk/nhibernate/src/NHibernate.Test/DynamicProxyTests/ProxiedMembers/MetodWithRefDictionaryTest.cs Added: trunk/nhibernate/src/NHibernate.Test/DynamicProxyTests/ProxiedMembers/MetodWithRefDictionaryTest.cs =================================================================== --- trunk/nhibernate/src/NHibernate.Test/DynamicProxyTests/ProxiedMembers/MetodWithRefDictionaryTest.cs (rev 0) +++ trunk/nhibernate/src/NHibernate.Test/DynamicProxyTests/ProxiedMembers/MetodWithRefDictionaryTest.cs 2011-04-07 17:30:46 UTC (rev 5630) @@ -0,0 +1,29 @@ +using System.Collections.Generic; +using NHibernate.Proxy.DynamicProxy; +using NUnit.Framework; +using SharpTestsEx; + +namespace NHibernate.Test.DynamicProxyTests.ProxiedMembers +{ + public class MetodWithRefDictionaryTest + { + public class MyClass + { + public virtual void Method(ref Dictionary<string ,string> adictionary) + { + adictionary = new Dictionary<string, string>(); + } + } + + [Test] + public void Proxy() + { + var factory = new ProxyFactory(); + var c = (MyClass)factory.CreateProxy(typeof(MyClass), new PassThroughInterceptor(new MyClass()), null); + var dictionary = new Dictionary<string, string>(); + var myParam = dictionary; + c.Method(ref myParam); + myParam.Should().Not.Be.SameInstanceAs(dictionary); + } + } +} \ No newline at end of file Modified: trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj =================================================================== --- trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj 2011-04-07 17:19:55 UTC (rev 5629) +++ trunk/nhibernate/src/NHibernate.Test/NHibernate.Test.csproj 2011-04-07 17:30:46 UTC (rev 5630) @@ -224,6 +224,7 @@ <Compile Include="DynamicProxyTests\LazyFieldInterceptorSerializable.cs" /> <Compile Include="DynamicProxyTests\PassThroughInterceptor.cs" /> <Compile Include="DynamicProxyTests\ProxiedMembers\Fixture.cs" /> + <Compile Include="DynamicProxyTests\ProxiedMembers\MetodWithRefDictionaryTest.cs" /> <Compile Include="EngineTest\CallableParserFixture.cs" /> <Compile Include="EngineTest\NativeSQLQueryNonScalarReturnTest.cs" /> <Compile Include="EngineTest\NativeSQLQueryScalarReturnTest.cs" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |